public function push($key, $data) {
        $key = trim($key);
        if (!array_key_exists($key, $this->data) || !is_array($this->data[$key])) {
            $this->data[$key] = [];
        }
        array_push($this->data[$key], $data);
    }
public function push($key, $data) {
        $key = trim($key);
        if (!array_key_exists($key, $this->data) || !is_array($this->data[$key])) {
            $this->data[$key] = [];
        }
        array_push($this->data[$key], $data);
    }
public function push ( $ key , $ data ) { $ key = trim ( $ key ) ; if ( ! array_key_exists ( $ key , $ this -> data ) || ! is_array ( $ this -> data [ $ key ] ) ) { $ this -> data [ $ key ] = [ ] ; } array_push ( $ this -> data [ $ key ] , $ data ) ; }
Push data onto key

@param string $key
@param array $data
Push data onto key