public function __get(string $prop) { throw new \DomainException($this->generateStructPropertyError($prop)); }