public function setStatus($status)
    {
        if (
            !in_array(
                $status,
                array(
                    self::STATUS_SUCCESS,
                    self::STATUS_ERROR,
                    self::STATUS_FAIL,
                )
            )
        ) {
            throw new Doozr_Base_Response_Rest_Exception(

            );
        }

        $this->status = $status;
    }
public function setStatus($status)
    {
        if (
            !in_array(
                $status,
                array(
                    self::STATUS_SUCCESS,
                    self::STATUS_ERROR,
                    self::STATUS_FAIL,
                )
            )
        ) {
            throw new Doozr_Base_Response_Rest_Exception(

            );
        }

        $this->status = $status;
    }
public function setStatus ( $ status ) { if ( ! in_array ( $ status , array ( self :: STATUS_SUCCESS , self :: STATUS_ERROR , self :: STATUS_FAIL , ) ) ) { throw new Doozr_Base_Response_Rest_Exception ( ) ; } $ this -> status = $ status ; }
Setter for status.

@param int $status The HTTP Status of current operation

@author Benjamin Carl <opensource@clickalicious.de>
@return Doozr_Base_Model_Rest Instance for chaining
@access public
@throws Doozr_Base_Response_Rest_Exception
Setter for status .