protected function checkData(array $data)
    {
        if (! isset($data[self::STATUS]) || ! in_array($data[self::STATUS], self::$availableStatus)) {
            throw new \common_Exception(
                __('A maintenance status must have a STATUS: "%s" or "%s"', self::LIVE_MODE, self::OFFLINE_MODE)
            );
        }
    }
protected function checkData(array $data)
    {
        if (! isset($data[self::STATUS]) || ! in_array($data[self::STATUS], self::$availableStatus)) {
            throw new \common_Exception(
                __('A maintenance status must have a STATUS: "%s" or "%s"', self::LIVE_MODE, self::OFFLINE_MODE)
            );
        }
    }
protected function checkData ( array $ data ) { if ( ! isset ( $ data [ self :: STATUS ] ) || ! in_array ( $ data [ self :: STATUS ] , self :: $ availableStatus ) ) { throw new \ common_Exception ( __ ( 'A maintenance status must have a STATUS: "%s" or "%s"' , self :: LIVE_MODE , self :: OFFLINE_MODE ) ) ; } }
Check data of constructor input

@param array $data
@throws \common_Exception
Check data of constructor input