entityType = $entityType; $this->id = $id; if (!$entityType || !$id) { throw new RuntimeException(); } } public function getEntityType(): string { return $this->entityType; } public function getId(): string { return $this->id; } }