Scientist\Result::setValue PHP Метод

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

Set the callback result value.
public setValue ( mixed $value )
$value mixed
    public function setValue($value)
    {
        $this->value = $value;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Execute the callback, but swallow exceptions.
  *
  * @return void
  */
 protected function executeMutedCallback()
 {
     try {
         $this->result->setValue(call_user_func_array($this->callback, $this->params));
     } catch (Exception $exception) {
         $this->result->setException($exception);
         $this->result->setValue(null);
     }
 }
All Usage Examples Of Scientist\Result::setValue