Joli\Jane\Generator\Normalizer\DenormalizerGenerator::createSupportsDenormalizationMethod PHP Метод

createSupportsDenormalizationMethod() защищенный Метод

Create method to check if denormalization is supported.
protected createSupportsDenormalizationMethod ( string $modelFqdn ) : ClassMethod
$modelFqdn string Fully Qualified name of the model class denormalized
Результат PhpParser\Node\Stmt\ClassMethod
    protected function createSupportsDenormalizationMethod($modelFqdn)
    {
        return new Stmt\ClassMethod('supportsDenormalization', ['type' => Stmt\Class_::MODIFIER_PUBLIC, 'params' => [new Param('data'), new Param('type'), new Param('format', new Expr\ConstFetch(new Name('null')))], 'stmts' => [new Stmt\If_(new Expr\BinaryOp\NotIdentical(new Expr\Variable('type'), new Scalar\String_($modelFqdn)), ['stmts' => [new Stmt\Return_(new Expr\ConstFetch(new Name('false')))]]), new Stmt\Return_(new Expr\ConstFetch(new Name('true')))]]);
    }