Xpressengine\Document\Models\Document::setStatus PHP Method

setStatus() public method

change documents status condition
public setStatus ( string $status ) : void
$status string condition value. 'usual':일반, 'temp':임시저장글, 'trash':휴지통글
return void
    public function setStatus($status)
    {
        $status = strtolower($status);
        if (in_array($status, $this->statuses) === false) {
            throw new NotAllowedTypeException(['type' => $status, 'to' => 'Status']);
        }
        $this->setAttribute('status', $status);
    }