Documentation

SimpleType extends Type
in package

FinalYes

Table of Contents

Properties

$allowsNull  : bool
$name  : string
$value  : mixed

Methods

__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
isTrue()  : bool
isUnion()  : bool
isUnknown()  : bool
isVoid()  : bool
name()  : string
value()  : mixed
normalize()  : string

Properties

Methods

__construct()

public __construct(string $name, bool $nullable[, mixed $value = null ]) : mixed
Parameters
$name : string
$nullable : bool
$value : mixed = null

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
Return values
bool

isCallable()

public isCallable() : bool
Tags
psalm-assert-if-true

CallableType $this

Return values
bool

isFalse()

public isFalse() : bool
Tags
psalm-assert-if-true

FalseType $this

Return values
bool

isGenericObject()

public isGenericObject() : bool
Tags
psalm-assert-if-true

GenericObjectType $this

Return values
bool

isIntersection()

public isIntersection() : bool
Tags
psalm-assert-if-true

IntersectionType $this

Return values
bool

isIterable()

public isIterable() : bool
Tags
psalm-assert-if-true

IterableType $this

Return values
bool

isMixed()

public isMixed() : bool
Tags
psalm-assert-if-true

MixedType $this

Return values
bool

isNever()

public isNever() : bool
Tags
psalm-assert-if-true

NeverType $this

Return values
bool

isNull()

public isNull() : bool
Tags
psalm-assert-if-true

NullType $this

Return values
bool

isObject()

public isObject() : bool
Tags
psalm-assert-if-true

ObjectType $this

Return values
bool

isSimple()

public isSimple() : bool
Tags
psalm-assert-if-true

SimpleType $this

Return values
bool

isStatic()

public isStatic() : bool
Tags
psalm-assert-if-true

StaticType $this

Return values
bool

isTrue()

public isTrue() : bool
Tags
psalm-assert-if-true

TrueType $this

Return values
bool

isUnion()

public isUnion() : bool
Tags
psalm-assert-if-true

UnionType $this

Return values
bool

isUnknown()

public isUnknown() : bool
Tags
psalm-assert-if-true

UnknownType $this

Return values
bool

isVoid()

public isVoid() : bool
Tags
psalm-assert-if-true

VoidType $this

Return values
bool

name()

public name() : string
Return values
string

normalize()

private normalize(string $name) : string
Parameters
$name : string
Return values
string

        
On this page

Search results