PHP Trait PHPStan\Type\JustNullableTypeTrait

Afficher le fichier Open project: phpstan/phpstan

Méthodes publiques

Méthode 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 méthode

public __construct ( boolean $nullable )
$nullable boolean

accepts() public méthode

public accepts ( PHPStan\Type\Type $type ) : boolean
$type PHPStan\Type\Type
Résultat boolean

combineWith() public méthode

public combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
$otherType PHPStan\Type\Type
Résultat PHPStan\Type\Type

getClass() public méthode

public getClass ( ) : string | null
Résultat string | null

isNullable() public méthode

public isNullable ( ) : boolean
Résultat boolean

makeNullable() public méthode

public makeNullable ( ) : PHPStan\Type\Type
Résultat PHPStan\Type\Type