PHP Trait Joli\Jane\Generator\Model\PropertyGenerator

Datei anzeigen Open project: jolicode/jane

Protected Methods

Method Description
createProperty ( string $name, Joli\Jane\Guesser\Guess\Type $type, string | null $default = null ) : Property Return a property stmt
createPropertyDoc ( Joli\Jane\Guesser\Guess\Type $type ) : PhpParser\Comment\Doc Get php doc for parameter
getNaming ( ) : Naming The naming service

Method Details

createProperty() protected method

Return a property stmt
protected createProperty ( string $name, Joli\Jane\Guesser\Guess\Type $type, string | null $default = null ) : Property
$name string
$type Joli\Jane\Guesser\Guess\Type
$default string | null
return PhpParser\Node\Stmt\Property

createPropertyDoc() protected method

Get php doc for parameter
protected createPropertyDoc ( Joli\Jane\Guesser\Guess\Type $type ) : PhpParser\Comment\Doc
$type Joli\Jane\Guesser\Guess\Type
return PhpParser\Comment\Doc

getNaming() abstract protected method

The naming service
abstract protected getNaming ( ) : Naming
return Joli\Jane\Generator\Naming