Documentation

CallableInterface
in

Pop utils callable interface

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
2.1.0

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

call()

Execute the call

public call([mixed $parameters = null ]) : mixed
Parameters
$parameters : mixed = null

getCallableType()

Get callable type

public getCallableType() : string|null
Return values
string|null

getConstructorParam()

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
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

        
On this page

Search results