public function setOrder(array $order)
    {
        // Check requirements
        if (
            in_array(self::LABEL, $order) === false ||
            in_array(self::COMPONENT, $order) === false ||
            in_array(self::MESSAGE, $order) === false
        ) {
            throw new Doozr_Form_Service_Exception(
                'Alda'
            );
        }

        $this->order = $order;
    }
public function setOrder(array $order)
    {
        // Check requirements
        if (
            in_array(self::LABEL, $order) === false ||
            in_array(self::COMPONENT, $order) === false ||
            in_array(self::MESSAGE, $order) === false
        ) {
            throw new Doozr_Form_Service_Exception(
                'Alda'
            );
        }

        $this->order = $order;
    }
public function setOrder ( array $ order ) { // Check requirements if ( in_array ( self :: LABEL , $ order ) === false || in_array ( self :: COMPONENT , $ order ) === false || in_array ( self :: MESSAGE , $ order ) === false ) { throw new Doozr_Form_Service_Exception ( 'Alda' ) ; } $ this -> order = $ order ; }
Setter for order.

@param array $order The order of elements. MUST include: self::LABEL, self::COMPONENT, self::MESSAGE

@author Benjamin Carl <opensource@clickalicious.de>

@throws Doozr_Form_Service_Exception
Setter for order .