Eloquent\Phony\Stub\Stub::returns PHP Метод

returns() публичный Метод

Add an answer that returns a value.
public returns ( mixed $value = null )
$value mixed The return value.
    public function returns($value = null);

Usage Example

Пример #1
0
 /**
  * Creates an answer that returns an empty value on the supplied stub.
  *
  * @param Stub $stub The stub.
  */
 public static function returnsEmptyAnswerCallback(Stub $stub)
 {
     $stub->returns();
 }