PHP Class Eloquent\Phony\Mock\Builder\Method\MethodDefinitionCollection

Show file Open project: eloquent/phony

Public Methods

Method Description
__construct ( array $methods, array $traitMethods ) Construct a new custom method definition.
allMethods ( ) : MethodDefinition>\array Get the methods.
methodName ( string $name ) : string | null Get the canonical method name for the supplied method name.
methods ( ) : MethodDefinition>\array Get the instance methods.
protectedMethods ( ) : MethodDefinition>\array Get the protected instance methods.
protectedStaticMethods ( ) : MethodDefinition>\array Get the protected static methods.
publicMethods ( ) : MethodDefinition>\array Get the public instance methods.
publicStaticMethods ( ) : MethodDefinition>\array Get the public static methods.
staticMethods ( ) : MethodDefinition>\array Get the static methods.
traitMethods ( ) : array Get the trait methods.

Method Details

__construct() public method

Construct a new custom method definition.
public __construct ( array $methods, array $traitMethods )
$methods array
$traitMethods array

allMethods() public method

Get the methods.
public allMethods ( ) : MethodDefinition>\array
return MethodDefinition>\array

methodName() public method

Get the canonical method name for the supplied method name.
public methodName ( string $name ) : string | null
$name string The method name.
return string | null The canonical method name, or null if no such method exists.

methods() public method

Get the instance methods.
public methods ( ) : MethodDefinition>\array
return MethodDefinition>\array

protectedMethods() public method

Get the protected instance methods.
public protectedMethods ( ) : MethodDefinition>\array
return MethodDefinition>\array

protectedStaticMethods() public method

Get the protected static methods.
public protectedStaticMethods ( ) : MethodDefinition>\array
return MethodDefinition>\array

publicMethods() public method

Get the public instance methods.
public publicMethods ( ) : MethodDefinition>\array
return MethodDefinition>\array

publicStaticMethods() public method

Get the public static methods.
public publicStaticMethods ( ) : MethodDefinition>\array
return MethodDefinition>\array

staticMethods() public method

Get the static methods.
public staticMethods ( ) : MethodDefinition>\array
return MethodDefinition>\array

traitMethods() public method

Get the trait methods.
public traitMethods ( ) : array
return array