extends |
BooleanType |
---|---|
implements |
ConstantScalarType |
uses |
ConstantScalarTypeTrait |
Methods | ||
---|---|---|
public
|
__construct(bool $value)
|
# |
public
|
getValue(): bool
|
# |
public
|
describe(VerbosityLevel $level): string
|
# |
public
|
getSmallerType(PhpVersion $phpVersion): Type
|
# |
public
|
getSmallerOrEqualType(PhpVersion $phpVersion): Type
|
# |
public
|
getGreaterType(PhpVersion $phpVersion): Type
|
# |
public
|
getGreaterOrEqualType(PhpVersion $phpVersion): Type
|
# |
public
|
toBoolean(): BooleanType
|
# |
public
|
toNumber(): Type
|
# |
public
|
toAbsoluteNumber(): Type
|
# |
public
|
toString(): Type
|
# |
public
|
toInteger(): Type
|
# |
public
|
toFloat(): Type
|
# |
public
|
toArrayKey(): Type
|
# |
public
|
isTrue(): TrinaryLogic
|
# |
public
|
isFalse(): TrinaryLogic
|
# |
public
|
generalize(GeneralizePrecision $precision): Type
|
# |
public
|
toPhpDocNode(): TypeNode
|
# |
public
|
looseCompare(Type $type, PhpVersion $phpVersion): BooleanType
|
# |
Methods inherited from PHPStan\Type\BooleanType |
---|
getConstantStrings(), toArray(), isOffsetAccessLegal(), isNull(), isBoolean(), isScalar(), tryRemove(), getFiniteTypes(), exponentiate(), |