PHP Trait PHPStan\Type\JustNullableTypeTrait

ファイルを表示 Open project: phpstan/phpstan

Public Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( boolean $nullable )
$nullable boolean

accepts() public method

public accepts ( PHPStan\Type\Type $type ) : boolean
$type PHPStan\Type\Type
return boolean

combineWith() public method

public combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
$otherType PHPStan\Type\Type
return PHPStan\Type\Type

getClass() public method

public getClass ( ) : string | null
return string | null

isNullable() public method

public isNullable ( ) : boolean
return boolean

makeNullable() public method

public makeNullable ( ) : PHPStan\Type\Type
return PHPStan\Type\Type