public function import(array $data)
    {
        foreach ($data as $param => $value) {

            if ($param === 'headers') {
                continue;
            }

            if (property_exists($this, $param)) {
                $this->$param = $value;
            }
        }

        $this->headers = array();

        if (isset($data['headers'])) {
            $this->setHeaders((array) $data['headers']);
        }

        return $this;
    }
public function import(array $data)
    {
        foreach ($data as $param => $value) {

            if ($param === 'headers') {
                continue;
            }

            if (property_exists($this, $param)) {
                $this->$param = $value;
            }
        }

        $this->headers = array();

        if (isset($data['headers'])) {
            $this->setHeaders((array) $data['headers']);
        }

        return $this;
    }
public function import ( array $ data ) { foreach ( $ data as $ param => $ value ) { if ( $ param === 'headers' ) { continue ; } if ( property_exists ( $ this , $ param ) ) { $ this -> $ param = $ value ; } } $ this -> headers = array ( ) ; if ( isset ( $ data [ 'headers' ] ) ) { $ this -> setHeaders ( ( array ) $ data [ 'headers' ] ) ; } return $ this ; }
Import response data

@access public
@param  array                           $data
@return \JonnyW\PhantomJs\Http\Response
Import response data