public function add($type, $value) { if (!isset($this->_data[$type])) { $this->_data[$type] = []; } $this->_data[$type][] = $value; return $this; }