PHP 트레잇 PHPStan\Type\JustNullableTypeTrait

파일 보기 프로젝트 열기: phpstan/phpstan

공개 메소드들

메소드 설명
__construct ( boolean $nullable )
accepts ( PHPStan\Type\Type $type ) : boolean
combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
getClass ( ) : string | null
isNullable ( ) : boolean
makeNullable ( ) : PHPStan\Type\Type

메소드 상세

__construct() 공개 메소드

public __construct ( boolean $nullable )
$nullable boolean

accepts() 공개 메소드

public accepts ( PHPStan\Type\Type $type ) : boolean
$type PHPStan\Type\Type
리턴 boolean

combineWith() 공개 메소드

public combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
$otherType PHPStan\Type\Type
리턴 PHPStan\Type\Type

getClass() 공개 메소드

public getClass ( ) : string | null
리턴 string | null

isNullable() 공개 메소드

public isNullable ( ) : boolean
리턴 boolean

makeNullable() 공개 메소드

public makeNullable ( ) : PHPStan\Type\Type
리턴 PHPStan\Type\Type