CallableType
extends Type
Table of Contents
-
$allowsNull
: bool
-
__construct()
: mixed
-
allowsNull()
: bool
-
asString()
: string
-
fromName()
: self
-
fromValue()
: self
-
isAssignable()
: bool
-
isCallable()
: bool
-
isFalse()
: bool
-
isGenericObject()
: bool
-
isIntersection()
: bool
-
isIterable()
: bool
-
isMixed()
: bool
-
isNever()
: bool
-
isNull()
: bool
-
isObject()
: bool
-
isSimple()
: bool
-
isStatic()
: bool
-
isUnion()
: bool
-
isUnknown()
: bool
-
isVoid()
: bool
-
name()
: string
-
hasInvokeMethod()
: bool
-
isClassCallback()
: bool
-
isClosure()
: bool
-
isFunction()
: bool
-
isObjectCallback()
: bool
$allowsNull
private
bool
$allowsNull
__construct()
public
__construct(bool $nullable) : mixed
Parameters
-
$nullable
: bool
-
Return values
mixed
—
allowsNull()
public
allowsNull() : bool
Return values
bool
—
asString()
public
asString() : string
Return values
string
—
fromName()
public
static fromName(string $typeName, bool $allowsNull) : self
Parameters
-
$typeName
: string
-
-
$allowsNull
: bool
-
Return values
self
—
fromValue()
public
static fromValue(mixed $value, bool $allowsNull) : self
Parameters
-
$value
: mixed
-
-
$allowsNull
: bool
-
Return values
self
—
isAssignable()
public
isAssignable(Type $other) : bool
Parameters
-
$other
: Type
-
-
throws
-
RuntimeException
Return values
bool
—
isCallable()
public
isCallable() : bool
Return values
bool
—
isFalse()
public
isFalse() : bool
Return values
bool
—
isGenericObject()
public
isGenericObject() : bool
Return values
bool
—
isIntersection()
public
isIntersection() : bool
Return values
bool
—
isIterable()
public
isIterable() : bool
Return values
bool
—
isMixed()
public
isMixed() : bool
Return values
bool
—
isNever()
public
isNever() : bool
Return values
bool
—
isNull()
public
isNull() : bool
Return values
bool
—
isObject()
public
isObject() : bool
Return values
bool
—
isSimple()
public
isSimple() : bool
Return values
bool
—
isStatic()
public
isStatic() : bool
Return values
bool
—
isUnion()
public
isUnion() : bool
Return values
bool
—
isUnknown()
public
isUnknown() : bool
Return values
bool
—
isVoid()
public
isVoid() : bool
Return values
bool
—
name()
public
name() : string
Return values
string
—
hasInvokeMethod()
private
hasInvokeMethod(ObjectType $type) : bool
Parameters
-
$type
: ObjectType
-
-
throws
-
RuntimeException
Return values
bool
—
isClassCallback()
private
isClassCallback(SimpleType $type) : bool
Parameters
-
$type
: SimpleType
-
Return values
bool
—
isClosure()
private
isClosure(ObjectType $type) : bool
Parameters
-
$type
: ObjectType
-
Return values
bool
—
isFunction()
private
isFunction(SimpleType $type) : bool
Parameters
-
$type
: SimpleType
-
Return values
bool
—
isObjectCallback()
private
isObjectCallback(SimpleType $type) : bool
Parameters
-
$type
: SimpleType
-
Return values
bool
—