public function add_data($object_name, array $data) { $this->data[$object_name] = $data; return $this; }