Overview

Namespaces

  • phpmock
    • environment
    • functions
    • spy

Classes

  • AbstractSleepFunction
  • FixedDateFunction
  • FixedMicrotimeFunction
  • FixedValueFunction
  • SleepFunction
  • UsleepFunction

Interfaces

  • FunctionProvider
  • Incrementable
  • Overview
  • Namespace
  • Class

Class FixedValueFunction

Mock function which returns always the same value.

phpmock\functions\FixedValueFunction implements phpmock\functions\FunctionProvider, phpmock\functions\Incrementable
Namespace: phpmock\functions
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at functions/FixedValueFunction.php
Methods summary
public
# __construct( mixed $value = null )

Set the value.

Set the value.

Parameters

$value
The value.
public callable
# getCallable( )

Returns this object as a callable for the mock function.

Returns this object as a callable for the mock function.

Returns

callable
The callable for this object.

Implementation of

phpmock\functions\FunctionProvider::getCallable()
public
# setValue( mixed $value )

Set the value.

Set the value.

Parameters

$value
The value.
API documentation generated by ApiGen