Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 359 Bytes

NullPolicy.md

File metadata and controls

19 lines (13 loc) · 359 Bytes

NullPolicy

<?php

use Chubbyphp\Deserialization\Denormalizer\DenormalizerContextInterface;
use Chubbyphp\Deserialization\Policy\NullPolicy;
use MyProject\Model\Model;

$model = new Model();

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

$policy = new NullPolicy();

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