PHP Class PHPStan\Type\StaticType

Inheritance: implements PHPStan\Type\Type
Show file Open project: phpstan/phpstan

Public Methods

Method Description
__construct ( string $baseClass, boolean $nullable )
accepts ( PHPStan\Type\Type $type ) : boolean
canAccessProperties ( ) : boolean
canCallMethods ( ) : boolean
combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
describe ( ) : string
getBaseClass ( ) : string
getClass ( ) : string | null
isNullable ( ) : boolean
makeNullable ( ) : PHPStan\Type\Type

Method Details

__construct() public method

public __construct ( string $baseClass, boolean $nullable )
$baseClass string
$nullable boolean

accepts() public method

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

canAccessProperties() public method

public canAccessProperties ( ) : boolean
return boolean

canCallMethods() public method

public canCallMethods ( ) : boolean
return boolean

combineWith() public method

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

describe() public method

public describe ( ) : string
return string

getBaseClass() public method

public getBaseClass ( ) : string
return string

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