PHP Класс Eloquent\Phony\Mock\Builder\Method\CustomMethodDefinition

Наследование: implements Eloquent\Phony\Mock\Builder\Method\MethodDefinition
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( boolean $isStatic, string $name, callable $callback, ReflectionFunctionAbstract $method ) Construct a new custom method definition.
accessLevel ( ) : string Get the access level.
callback ( ) : callable | null Get the callback.
isCallable ( ) : boolean Returns true if this method is callable.
isCustom ( ) : boolean Returns true if this method is custom.
isStatic ( ) : boolean Returns true if this method is static.
method ( ) : ReflectionFunctionAbstract Get the method.
name ( ) : string Get the name.

Описание методов

__construct() публичный Метод

Construct a new custom method definition.
public __construct ( boolean $isStatic, string $name, callable $callback, ReflectionFunctionAbstract $method )
$isStatic boolean True if this method is static.
$name string The name.
$callback callable The callback.
$method ReflectionFunctionAbstract The function implementation.

accessLevel() публичный Метод

Get the access level.
public accessLevel ( ) : string
Результат string The access level.

callback() публичный Метод

Get the callback.
public callback ( ) : callable | null
Результат callable | null The callback, or null if this is a real method.

isCallable() публичный Метод

Returns true if this method is callable.
public isCallable ( ) : boolean
Результат boolean True if this method is callable.

isCustom() публичный Метод

Returns true if this method is custom.
public isCustom ( ) : boolean
Результат boolean True if this method is custom.

isStatic() публичный Метод

Returns true if this method is static.
public isStatic ( ) : boolean
Результат boolean True if this method is static.

method() публичный Метод

Get the method.
public method ( ) : ReflectionFunctionAbstract
Результат ReflectionFunctionAbstract The method.

name() публичный Метод

Get the name.
public name ( ) : string
Результат string The name.