src/Model/Page.php
public function setStatus($status)
    {
        if (!in_array($status, [self::STATUS_DRAFT, self::STATUS_PUBLISHED, self::STATUS_REVIEW, self::STATUS_OFFLINE])) {
            throw new \InvalidArgumentException('Invalid status');
        }
        $this->status = $status;

        return $this;
    }
public function setStatus($status)
    {
        if (!in_array($status, [self::STATUS_DRAFT, self::STATUS_PUBLISHED, self::STATUS_REVIEW, self::STATUS_OFFLINE])) {
            throw new \InvalidArgumentException('Invalid status');
        }
        $this->status = $status;

        return $this;
    }
public function setStatus ( $ status ) { if ( ! in_array ( $ status , [ self :: STATUS_DRAFT , self :: STATUS_PUBLISHED , self :: STATUS_REVIEW , self :: STATUS_OFFLINE ] ) ) { throw new \ InvalidArgumentException ( 'Invalid status' ) ; } $ this -> status = $ status ; return $ this ; }
Set active.

@param string $status

@return $this

@throws \InvalidArgumentException
Set active .