Documentation

Call
in package

Call object.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Table of Contents

$arguments  : mixed
$exception  : mixed
$file  : mixed
$line  : mixed
$methodName  : mixed
$returnValue  : mixed
$scores  : mixed
__construct()  : mixed
Initializes call.
addScore()  : $this
Adds the wildcard match score for the provided wildcard.
getArguments()  : array<string|int, mixed>
Returns called method arguments.
getCallPlace()  : string
Returns short notation for callee place.
getException()  : null|Exception
Returns exception that call thrown.
getFile()  : string
Returns callee filename.
getLine()  : int
Returns callee line number.
getMethodName()  : string
Returns called method name.
getReturnValue()  : null|mixed
Returns called method return value.
getScore()  : false|int
Returns wildcard match score for the provided wildcard. The score is calculated if not already done.

Properties

$arguments

private mixed $arguments

$exception

private mixed $exception

$file

private mixed $file

$line

private mixed $line

$methodName

private mixed $methodName

$returnValue

private mixed $returnValue

$scores

private mixed $scores

Methods

__construct()

Initializes call.

public __construct(string $methodName, array<string|int, mixed> $arguments, mixed $returnValue[, Exception $exception = null ], null|string $file, null|int $line) : mixed
Parameters
$methodName : string
$arguments : array<string|int, mixed>
$returnValue : mixed
$exception : Exception = null
$file : null|string
$line : null|int
Return values
mixed

addScore()

Adds the wildcard match score for the provided wildcard.

public addScore(ArgumentsWildcard $wildcard, false|int $score) : $this
Parameters
$wildcard : ArgumentsWildcard
$score : false|int
Return values
$this

getArguments()

Returns called method arguments.

public getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCallPlace()

Returns short notation for callee place.

public getCallPlace() : string
Return values
string

getException()

Returns exception that call thrown.

public getException() : null|Exception
Return values
null|Exception

getFile()

Returns callee filename.

public getFile() : string
Return values
string

getLine()

Returns callee line number.

public getLine() : int
Return values
int

getMethodName()

Returns called method name.

public getMethodName() : string
Return values
string

getReturnValue()

Returns called method return value.

public getReturnValue() : null|mixed
Return values
null|mixed

getScore()

Returns wildcard match score for the provided wildcard. The score is calculated if not already done.

public getScore(ArgumentsWildcard $wildcard) : false|int
Parameters
$wildcard : ArgumentsWildcard
Return values
false|int

False OR integer score (higher - better)

Search results