getCallable() public method

Returns this object as a callable for the mock function.
public getCallable ( ) : callable
return callable The callable for this object.
Esempio n. 1
0
 /**
  * Sets the mock function.
  *
  * @param FunctionProvider $provider The mock function provider.
  * @return MockBuilder
  * @see setFunction()
  */
 public function setFunctionProvider(FunctionProvider $provider)
 {
     return $this->setFunction($provider->getCallable());
 }