CallableInterface
in
Pop utils callable interface
Tags
Table of Contents
Methods
- addNamedParameter() : CallableInterface
- Add a parameter
- addParameter() : CallableInterface
- Add a parameter
- addParameters() : CallableInterface
- Add parameters
- call() : mixed
- Execute the call
- getCallable() : mixed
- Get callable
- getCallableType() : string|null
- Get callable type
- getConstructorParam() : mixed
- Get a constructor parameter for instance call
- getConstructorParams() : array<string|int, mixed>
- Get constructor parameters for instance call
- getParameter() : mixed
- Get a parameter
- getParameters() : array<string|int, mixed>
- Get parameters
- hasConstructorParam() : bool
- Has a constructor parameter for instance call
- hasConstructorParams() : bool
- Has constructor parameters for instance call
- hasParameter() : bool
- Has a parameter
- hasParameters() : bool
- Has parameters
- isCallable() : bool
- Check if object is callable
- prepare() : CallableInterface
- Prepare object for call
- prepareParameters() : CallableInterface
- Prepare parameters
- removeConstructorParam() : CallableInterface
- Remove a constructor parameter for instance call
- removeConstructorParams() : CallableInterface
- Remove all constructor parameters for instance call
- removeParameter() : CallableInterface
- Remove a parameter
- removeParameters() : CallableInterface
- Remove all parameters
- setCallable() : CallableInterface
- Set callable
- setConstructorParams() : CallableInterface
- Set constructor parameters for instance call
- setParameters() : CallableInterface
- Set parameters
- wasCalled() : bool
- Check if object was called
Methods
addNamedParameter()
Add a parameter
public
addNamedParameter(string $name, mixed $parameter) : CallableInterface
Parameters
- $name : string
- $parameter : mixed
Return values
CallableInterfaceaddParameter()
Add a parameter
public
addParameter(mixed $parameter) : CallableInterface
Parameters
- $parameter : mixed
Return values
CallableInterfaceaddParameters()
Add parameters
public
addParameters(array<string|int, mixed> $parameters) : CallableInterface
Parameters
- $parameters : array<string|int, mixed>
Return values
CallableInterfacecall()
Execute the call
public
call([mixed $parameters = null ]) : mixed
Parameters
- $parameters : mixed = null
getCallable()
Get callable
public
getCallable() : mixed
getCallableType()
Get callable type
public
getCallableType() : string|null
Return values
string|nullgetConstructorParam()
Get a constructor parameter for instance call
public
getConstructorParam(string $key) : mixed
Parameters
- $key : string
getConstructorParams()
Get constructor parameters for instance call
public
getConstructorParams() : array<string|int, mixed>
Return values
array<string|int, mixed>getParameter()
Get a parameter
public
getParameter(string $key) : mixed
Parameters
- $key : string
getParameters()
Get parameters
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>hasConstructorParam()
Has a constructor parameter for instance call
public
hasConstructorParam(string $key) : bool
Parameters
- $key : string
Return values
boolhasConstructorParams()
Has constructor parameters for instance call
public
hasConstructorParams() : bool
Return values
boolhasParameter()
Has a parameter
public
hasParameter(string $key) : bool
Parameters
- $key : string
Return values
boolhasParameters()
Has parameters
public
hasParameters() : bool
Return values
boolisCallable()
Check if object is callable
public
isCallable() : bool
Return values
boolprepare()
Prepare object for call
public
prepare() : CallableInterface
Return values
CallableInterfaceprepareParameters()
Prepare parameters
public
prepareParameters() : CallableInterface
Return values
CallableInterfaceremoveConstructorParam()
Remove a constructor parameter for instance call
public
removeConstructorParam(string $key) : CallableInterface
Parameters
- $key : string
Return values
CallableInterfaceremoveConstructorParams()
Remove all constructor parameters for instance call
public
removeConstructorParams() : CallableInterface
Return values
CallableInterfaceremoveParameter()
Remove a parameter
public
removeParameter(string $key) : CallableInterface
Parameters
- $key : string
Return values
CallableInterfaceremoveParameters()
Remove all parameters
public
removeParameters() : CallableInterface
Return values
CallableInterfacesetCallable()
Set callable
public
setCallable(mixed $callable) : CallableInterface
Parameters
- $callable : mixed
Return values
CallableInterfacesetConstructorParams()
Set constructor parameters for instance call
public
setConstructorParams(array<string|int, mixed> $constructorParams) : CallableInterface
Parameters
- $constructorParams : array<string|int, mixed>
Return values
CallableInterfacesetParameters()
Set parameters
public
setParameters(array<string|int, mixed> $parameters) : CallableInterface
Parameters
- $parameters : array<string|int, mixed>
Return values
CallableInterfacewasCalled()
Check if object was called
public
wasCalled() : bool