PHP Class phpmock\functions\FixedValueFunction

Author: Markus Malkusch ([email protected])
Inheritance: implements phpmock\functions\FunctionProvider, implements phpmock\functions\Incrementable
Show file Open project: php-mock/php-mock

Public Methods

Method Description
__construct ( mixed $value = null ) Set the value.
getCallable ( ) : callable Returns this object as a callable for the mock function.
increment ( $increment )
setValue ( mixed $value ) Set the value.

Method Details

__construct() public method

Set the value.
public __construct ( mixed $value = null )
$value mixed The value.

getCallable() public method

Returns this object as a callable for the mock function.
public getCallable ( ) : callable
return callable The callable for this object.

increment() public method

public increment ( $increment )

setValue() public method

Set the value.
public setValue ( mixed $value )
$value mixed The value.