PHP Class Zend\Code\Generator\TypeGenerator

Inheritance: implements Zend\Code\Generator\GeneratorInterface
Show file Open project: zendframework/zend-code Class Usage Examples

Public Methods

Method Description
__toString ( ) : string
fromTypeString ( string $type ) : TypeGenerator
generate ( ) {@inheritDoc}

Private Methods

Method Description
__construct ( )
isInternalPhpType ( string $type ) : boolean
trimNullable ( string $type ) : bool[] | string[]
trimType ( string $type ) : bool[] | string[]

Method Details

__toString() public method

public __toString ( ) : string
return string the cleaned type string

fromTypeString() public static method

public static fromTypeString ( string $type ) : TypeGenerator
$type string
return TypeGenerator

generate() public method

{@inheritDoc}
public generate ( )