Definition at line 5 of file ReturnType.php.
◆ __construct()
DaveRandom\CallbackValidator\ReturnType::__construct |
( |
|
$typeName = null , |
|
|
|
$flags = self::COVARIANT |
|
) |
| |
- Parameters
-
string | null | $typeName | |
int | $flags | |
Definition at line 49 of file ReturnType.php.
◆ __toString()
DaveRandom\CallbackValidator\ReturnType::__toString |
( |
| ) |
|
◆ createFromReflectionFunctionAbstract()
static DaveRandom\CallbackValidator\ReturnType::createFromReflectionFunctionAbstract |
( |
|
$reflection, |
|
|
|
$flags = 0 |
|
) |
| |
|
static |
◆ isSatisfiedBy()
DaveRandom\CallbackValidator\Type::isSatisfiedBy |
( |
|
$typeName, |
|
|
|
$nullable, |
|
|
|
$byReference |
|
) |
| |
|
inherited |
◆ $allowsContravariance
DaveRandom\CallbackValidator\Type::$allowsContravariance |
|
inherited |
◆ $allowsCovariance
DaveRandom\CallbackValidator\Type::$allowsCovariance |
|
inherited |
◆ $isByReference
DaveRandom\CallbackValidator\Type::$isByReference |
|
inherited |
◆ $isNullable
DaveRandom\CallbackValidator\Type::$isNullable |
|
inherited |
◆ $isWeak
DaveRandom\CallbackValidator\Type::$isWeak |
|
inherited |
◆ $typeName
DaveRandom\CallbackValidator\Type::$typeName |
|
inherited |
◆ CONTRAVARIANT
const DaveRandom\CallbackValidator\ReturnType::CONTRAVARIANT = 0x01 << 16 |
Contravariant return types allow implementors to specify a supertype of that which is specified in the prototype Usually this isn't a good idea, it's not type-safe, do not use unless you understand what you are doing!
Definition at line 11 of file ReturnType.php.
◆ COVARIANT
const DaveRandom\CallbackValidator\ReturnType::COVARIANT = 0x02 << 16 |
Covariant return types allow implementors to specify a subtype of that which is specified in the prototype
Definition at line 16 of file ReturnType.php.
◆ NULLABLE
const DaveRandom\CallbackValidator\Type::NULLABLE = 0x02 |
|
inherited |
◆ REFERENCE
const DaveRandom\CallbackValidator\Type::REFERENCE = 0x04 |
|
inherited |
◆ WEAK
const DaveRandom\CallbackValidator\Type::WEAK = 0x01 |
|
inherited |
Weak mode validates types using the same rules are strict_types=0
Definition at line 10 of file Type.php.
The documentation for this class was generated from the following file: