PHP Class PHPStan\Type\ArrayType

Inheritance: implements PHPStan\Type\Type
Datei anzeigen Open project: phpstan/phpstan Class Usage Examples

Public Methods

Method Description
__construct ( PHPStan\Type\Type $itemType, boolean $nullable, boolean $itemTypeInferredFromLiteralArray = false, boolean $possiblyCallable = false )
accepts ( PHPStan\Type\Type $type ) : boolean
canAccessProperties ( ) : boolean
canCallMethods ( ) : boolean
combineWith ( PHPStan\Type\Type $otherType ) : PHPStan\Type\Type
createDeepArrayType ( NestedArrayItemType $nestedItemType, boolean $nullable ) : self
describe ( ) : string
getClass ( ) : string | null
getItemType ( ) : PHPStan\Type\Type
getNestedItemType ( ) : NestedArrayItemType
isItemTypeInferredFromLiteralArray ( ) : boolean
isNullable ( ) : boolean
isPossiblyCallable ( ) : boolean
makeNullable ( ) : PHPStan\Type\Type

Method Details

__construct() public method

public __construct ( PHPStan\Type\Type $itemType, boolean $nullable, boolean $itemTypeInferredFromLiteralArray = false, boolean $possiblyCallable = false )
$itemType PHPStan\Type\Type
$nullable boolean
$itemTypeInferredFromLiteralArray boolean
$possiblyCallable 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

createDeepArrayType() public static method

public static createDeepArrayType ( NestedArrayItemType $nestedItemType, boolean $nullable ) : self
$nestedItemType NestedArrayItemType
$nullable boolean
return self

describe() public method

public describe ( ) : string
return string

getClass() public method

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

getItemType() public method

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

getNestedItemType() public method

public getNestedItemType ( ) : NestedArrayItemType
return NestedArrayItemType

isItemTypeInferredFromLiteralArray() public method

isNullable() public method

public isNullable ( ) : boolean
return boolean

isPossiblyCallable() public method

public isPossiblyCallable ( ) : boolean
return boolean

makeNullable() public method

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