$value) { $this->setSingle($key, $value); } } else { $this->setSingle($keyOrData, $value); } return $this; } private function setSingle($key, $value) { $this->data[$key] = $value; } public function getData() { return array_merge($this->defaultData, $this->data); } /** * @param AbstractBuilderComponent $component */ public function add($component) { } }