PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
DaveRandom\CallbackValidator\CallbackType Class Reference
+ Collaboration diagram for DaveRandom\CallbackValidator\CallbackType:

Public Member Functions

 __construct (ReturnType $returnType, ParameterType ... $parameters)
 
 __toString ()
 
 isSatisfiedBy ($callable)
 

Static Public Member Functions

static createFromCallable ($callable, $flags=ParameterType::CONTRAVARIANT|ReturnType::COVARIANT)
 

Detailed Description

Definition at line 5 of file CallbackType.php.

Constructor & Destructor Documentation

◆ __construct()

DaveRandom\CallbackValidator\CallbackType::__construct ( ReturnType  $returnType,
ParameterType ...  $parameters 
)

Definition at line 75 of file CallbackType.php.

Member Function Documentation

◆ __toString()

DaveRandom\CallbackValidator\CallbackType::__toString ( )
Returns
string

Definition at line 152 of file CallbackType.php.

◆ createFromCallable()

static DaveRandom\CallbackValidator\CallbackType::createFromCallable (   $callable,
  $flags = ParameterType::CONTRAVARIANT | ReturnType::COVARIANT 
)
static
Parameters
callable$callable
int$flags
Returns
CallbackType
Exceptions
InvalidCallbackException

Definition at line 56 of file CallbackType.php.

References DaveRandom\CallbackValidator\ReturnType\createFromReflectionFunctionAbstract(), and DaveRandom\CallbackValidator\ParameterType\createFromReflectionParameter().

+ Here is the call graph for this function:

◆ isSatisfiedBy()

DaveRandom\CallbackValidator\CallbackType::isSatisfiedBy (   $callable)
Parameters
callable$callable
Returns
bool

Definition at line 85 of file CallbackType.php.

References DaveRandom\CallbackValidator\CallbackType\isSatisfiedBy().

Referenced by DaveRandom\CallbackValidator\CallbackType\isSatisfiedBy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: