PHP Class PHPStan\Type\CallableType

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

Public Methods

Method Description
__construct ( boolean $nullable )
accepts ( PHPStan\Type\Type $type ) : boolean
canAccessProperties ( ) : boolean
canCallMethods ( ) : boolean
combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
describe ( ) : string
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

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

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