ArrayStorage.php
public function setData($data) {
        if (!empty($data)) {
            foreach($data as $key=>$value) {
                $this->_data[$key] = $value;
            }
        } else {
            $this->_data = array();
        }
    }
public function setData($data) {
        if (!empty($data)) {
            foreach($data as $key=>$value) {
                $this->_data[$key] = $value;
            }
        } else {
            $this->_data = array();
        }
    }
public function setData ( $ data ) { if ( ! empty ( $ data ) ) { foreach ( $ data as $ key => $ value ) { $ this -> _data [ $ key ] = $ value ; } } else { $ this -> _data = array ( ) ; } }
Set data for current instance

@param $data
@return mixed
Set data for current instance