additionalIds = $additionalIds; } public function getAdditionalId(int $index) : int{ if(!isset($this->additionalIds[$index])){ throw new \InvalidArgumentException("No such ID at index $index"); } return $this->additionalIds[$index]; } public function getSecondId() : int{ return $this->getAdditionalId(0); } public function getAllBlockIds() : array{ return [$this->getBlockId(), ...$this->additionalIds]; } }