PHP Class phpmock\functions\FixedValueFunction

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

Méthodes publiques

Méthode 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 méthode

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

getCallable() public méthode

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

increment() public méthode

public increment ( $increment )

setValue() public méthode

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