Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 349 Bytes

NullPolicy.md

File metadata and controls

19 lines (13 loc) · 349 Bytes

NullPolicy

<?php

use Chubbyphp\Serialization\Normalizer\NormalizerContextInterface;
use Chubbyphp\Serialization\Policy\NullPolicy;
use MyProject\Model\Model;

$model = new Model();

/** @var NormalizerContextInterface $context */
$context = ...;

$policy = new NullPolicy();

echo $policy->isCompliant('path', $model, $context);
// 1