public function status($status)
    {
        if (!($status instanceof Status)) {
            $status = new Status($status);
        }

        $this->status = $status;

        return $this;
    }
public function status($status)
    {
        if (!($status instanceof Status)) {
            $status = new Status($status);
        }

        $this->status = $status;

        return $this;
    }
public function status ( $ status ) { if ( ! ( $ status instanceof Status ) ) { $ status = new Status ( $ status ) ; } $ this -> status = $ status ; return $ this ; }
Set status to given Status instance or status code.

@param Status|string $status

@return $this
Set status to given Status instance or status code .