src/Entity/Job.php
public function changeStatus($status, $message = '[System]')
    {
        $this->setStatus($status);
        $status = $this->getStatus(); // ensure StatusEntity

        $history = new History($status, $message);

        $this->getHistory()->add($history);
        return $this;
    }
public function changeStatus($status, $message = '[System]')
    {
        $this->setStatus($status);
        $status = $this->getStatus(); // ensure StatusEntity

        $history = new History($status, $message);

        $this->getHistory()->add($history);
        return $this;
    }
public function changeStatus ( $ status , $ message = '[System]' ) { $ this -> setStatus ( $ status ) ; $ status = $ this -> getStatus ( ) ; // ensure StatusEntity $ history = new History ( $ status , $ message ) ; $ this -> getHistory ( ) -> add ( $ history ) ; return $ this ; }
Modifies the state of an application.

Creates a history entry.

@param StatusInterface|string $status
@param string $message
@return Job
Modifies the state of an application .