PHP Class Joli\Jane\Guesser\Guess\PatternMultipleType

Inheritance: extends Joli\Jane\Guesser\Guess\Type
Show file Open project: jolicode/jane Class Usage Examples

Protected Properties

Property Type Description
$types

Public Methods

Method Description
__construct ( $object, array $types = [] )
__toString ( ) : string
addType ( string $pattern, Joli\Jane\Guesser\Guess\Type $type ) Add a type
createDenormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input ) (@inheritDoc}
createNormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input ) (@inheritDoc}

Protected Methods

Method Description
createArrayValueStatement ( ) {@inheritDoc}
createLoopKeyStatement ( Joli\Jane\Generator\Context\Context $context ) {@inheritDoc}
createNormalizationArrayValueStatement ( ) {@inheritDoc}

Method Details

__construct() public method

public __construct ( $object, array $types = [] )
$types array

__toString() public method

public __toString ( ) : string
return string

addType() public method

Add a type
public addType ( string $pattern, Joli\Jane\Guesser\Guess\Type $type )
$pattern string
$type Joli\Jane\Guesser\Guess\Type

createArrayValueStatement() protected method

{@inheritDoc}

createDenormalizationStatement() public method

(@inheritDoc}
public createDenormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input )
$context Joli\Jane\Generator\Context\Context
$input PhpParser\Node\Expr

createLoopKeyStatement() protected method

{@inheritDoc}
protected createLoopKeyStatement ( Joli\Jane\Generator\Context\Context $context )
$context Joli\Jane\Generator\Context\Context

createNormalizationArrayValueStatement() protected method

{@inheritDoc}

createNormalizationStatement() public method

(@inheritDoc}
public createNormalizationStatement ( Joli\Jane\Generator\Context\Context $context, PhpParser\Node\Expr $input )
$context Joli\Jane\Generator\Context\Context
$input PhpParser\Node\Expr

Property Details

$types protected property

protected $types