src/GetContents.php
public function setData($data = [])
    {
        if (!is_array($data) && is_string($data)) {
            $data = parse_str($data);
        }
        if (count($data) == 0) {
            $this->data = [];
        } else {
            $this->data = $data;
        }
        $this->debug->debug(__FUNCTION__, 'Data into Request: ', $this->data);
    }
public function setData($data = [])
    {
        if (!is_array($data) && is_string($data)) {
            $data = parse_str($data);
        }
        if (count($data) == 0) {
            $this->data = [];
        } else {
            $this->data = $data;
        }
        $this->debug->debug(__FUNCTION__, 'Data into Request: ', $this->data);
    }
public function setData ( $ data = [ ] ) { if ( ! is_array ( $ data ) && is_string ( $ data ) ) { $ data = parse_str ( $ data ) ; } if ( count ( $ data ) == 0 ) { $ this -> data = [ ] ; } else { $ this -> data = $ data ; } $ this -> debug -> debug ( __FUNCTION__ , 'Data into Request: ' , $ this -> data ) ; }
Set Data contents
Must be supplied as an array

@param array $data The contents to be sent to the target URL

@author: 713uk13m <dev@nguyenanhung.com>
@time  : 10/7/18 02:18
Set Data contents Must be supplied as an array