protected function buildStatusCodes(array $data)
    {
        if (isset($data['statusCodes'])) {
            $this->initializeStatusCodes();
            foreach ($data['statusCodes'] as $key => $element) {
                if ((int) $key < 200) {
                    $this->statusCodes($element);
                } else {
                    $this->statusCodes($key, $element);
                }
            }
        }

        return $this;
    }
protected function buildStatusCodes(array $data)
    {
        if (isset($data['statusCodes'])) {
            $this->initializeStatusCodes();
            foreach ($data['statusCodes'] as $key => $element) {
                if ((int) $key < 200) {
                    $this->statusCodes($element);
                } else {
                    $this->statusCodes($key, $element);
                }
            }
        }

        return $this;
    }
protected function buildStatusCodes ( array $ data ) { if ( isset ( $ data [ 'statusCodes' ] ) ) { $ this -> initializeStatusCodes ( ) ; foreach ( $ data [ 'statusCodes' ] as $ key => $ element ) { if ( ( int ) $ key < 200 ) { $ this -> statusCodes ( $ element ) ; } else { $ this -> statusCodes ( $ key , $ element ) ; } } } return $ this ; }
Loads data given status codes.

@param array $data Array that contains all the data

@return self
Loads data given status codes .