data = $data; } public function get(string $entityType, $key = null, $default = null) { if (!array_key_exists($entityType, $this->data)) { return null; } $data = $this->data[$entityType]; if (!$key) return $data; return Util::getValueByKey($data, $key, $default); } public function has(string $entityType) : bool { if (!array_key_exists($entityType, $this->data)) { return false; } return true; } }