Cron\Report\JobReport::setSuccessful PHP Méthode

setSuccessful() public méthode

public setSuccessful ( boolean $state )
$state boolean
    public function setSuccessful($state)
    {
        $this->successful = $state;
    }

Usage Example

 /**
  * Register the end state.
  */
 protected function registerSuccessful()
 {
     $this->report->setSuccessful($this->getProcess()->isSuccessful());
 }