Documentation

CallableInterface
in

Pop utils callable interface

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
1.3.0

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

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

setConstructorParams()

Set constructor parameters for instance call

public setConstructorParams(array<string|int, mixed> $constructorParams) : CallableInterface
Parameters
$constructorParams : array<string|int, mixed>
Return values
CallableInterface

wasCalled()

Check if object was called

public wasCalled() : bool
Return values
bool

Search results