Property | Type | Description | |
---|---|---|---|
$types |
Method | Description | |
---|---|---|
__construct ( $object, array $types = [] ) | ||
__toString ( ) : string | ||
addType ( Joli\Jane\Guesser\Guess\Type $type ) | Add a type | |
createDenormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input ) | ||
createNormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input ) | ||
getTypeHint ( ) | ||
getTypes ( ) : Joli\Jane\Guesser\Guess\Type[] | Return a list of types |
Method | Description | |
---|---|---|
isOptionalObjectType ( Joli\Jane\Guesser\Guess\Type $nullType, Joli\Jane\Guesser\Guess\Type $objectType ) |
public addType ( Joli\Jane\Guesser\Guess\Type $type ) | ||
$type | Joli\Jane\Guesser\Guess\Type |
public createDenormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input ) | ||
$context | Joli\Jane\Generator\Context\Context | |
$input | PhpParser\Node\Expr |
public createNormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input ) | ||
$context | Joli\Jane\Generator\Context\Context | |
$input | PhpParser\Node\Expr |
public getTypes ( ) : Joli\Jane\Guesser\Guess\Type[] | ||
return | Joli\Jane\Guesser\Guess\Type[] |