CallableInterface
                
            in
            
        
    
        
            Pop utils callable interface
Tags
Table of Contents
- 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
- 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
CallableInterface —addParameter()
Add a parameter
    public
                addParameter(mixed $parameter) : CallableInterface
        
        Parameters
- $parameter : mixed
Return values
CallableInterface —addParameters()
Add parameters
    public
                addParameters(array<string|int, mixed> $parameters) : CallableInterface
        
        Parameters
- $parameters : array<string|int, mixed>
Return values
CallableInterface —call()
Execute the call
    public
                call([mixed $parameters = null ]) : mixed
        
        Parameters
- $parameters : mixed = null
Return values
mixed —getCallable()
Get callable
    public
                getCallable() : mixed
        
    
    
        Return values
mixed —getCallableType()
Get callable type
    public
                getCallableType() : string
        
    
    
        Return values
string —getConstructorParam()
Get a constructor parameter for instance call
    public
                getConstructorParam(string $key) : mixed
        
        Parameters
- $key : string
Return values
mixed —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
Return values
mixed —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
bool —hasConstructorParams()
Has constructor parameters for instance call
    public
                hasConstructorParams() : bool
        
    
    
        Return values
bool —hasParameter()
Has a parameter
    public
                hasParameter(string $key) : bool
        
        Parameters
- $key : string
Return values
bool —hasParameters()
Has parameters
    public
                hasParameters() : bool
        
    
    
        Return values
bool —isCallable()
Check if object is callable
    public
                isCallable() : bool
        
    
    
        Return values
bool —prepare()
Prepare object for call
    public
                prepare() : CallableInterface
        
    
    
        Return values
CallableInterface —prepareParameters()
Prepare parameters
    public
                prepareParameters() : CallableInterface
        
    
    
        Return values
CallableInterface —removeConstructorParam()
Remove a constructor parameter for instance call
    public
                removeConstructorParam(string $key) : CallableInterface
        
        Parameters
- $key : string
Return values
CallableInterface —removeConstructorParams()
Remove all constructor parameters for instance call
    public
                removeConstructorParams() : CallableInterface
        
    
    
        Return values
CallableInterface —removeParameter()
Remove a parameter
    public
                removeParameter(string $key) : CallableInterface
        
        Parameters
- $key : string
Return values
CallableInterface —removeParameters()
Remove all parameters
    public
                removeParameters() : CallableInterface
        
    
    
        Return values
CallableInterface —setCallable()
Set callable
    public
                setCallable(mixed $callable) : CallableInterface
        
        Parameters
- $callable : mixed
Return values
CallableInterface —setConstructorParams()
Set constructor parameters for instance call
    public
                setConstructorParams(array<string|int, mixed> $constructorParams) : CallableInterface
        
        Parameters
- $constructorParams : array<string|int, mixed>
Return values
CallableInterface —setParameters()
Set parameters
    public
                setParameters(array<string|int, mixed> $parameters) : CallableInterface
        
        Parameters
- $parameters : array<string|int, mixed>
Return values
CallableInterface —wasCalled()
Check if object was called
    public
                wasCalled() : bool