public function __get(string $property)
{
if (\property_exists($this, $property)) {
return $this->{$property};
} else {
// Use \Amp\Struct::generateStructPropertyError() to get a nice message
// with a possible suggestion for the correct name
throw new \DomainException($this->generateStructPropertyError($property));
}
}