PHP 트레잇 Joli\Jane\Generator\Model\PropertyGenerator

파일 보기 프로젝트 열기: jolicode/jane

보호된 메소드들

메소드 설명
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

메소드 상세

createProperty() 보호된 메소드

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
리턴 PhpParser\Node\Stmt\Property

createPropertyDoc() 보호된 메소드

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

getNaming() 추상적인 보호된 메소드

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