getCallable() public method

Returns this object as a callable for the mock function.
public getCallable ( ) : callable
return callable The callable for this object.
コード例 #1
0
ファイル: MockBuilder.php プロジェクト: OndraM/php-mock
 /**
  * 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());
 }