public function markPending(): bool
    {
        $this->owner->{$this->statusAttribute} = Status::PENDING;

        if ($this->beforeModeration()) {
            return $this->owner->save();
        }

        return false;
    }
public function markPending(): bool
    {
        $this->owner->{$this->statusAttribute} = Status::PENDING;

        if ($this->beforeModeration()) {
            return $this->owner->save();
        }

        return false;
    }
public function markPending ( ) : bool { $ this -> owner -> { $ this -> statusAttribute } = Status :: PENDING ; if ( $ this -> beforeModeration ( ) ) { return $ this -> owner -> save ( ) ; } return false ; }
Change model status to Pending

@return bool
Change model status to Pending