public function offsetGet($property)
{
if (property_exists($this, $property)) {
return $this->{$property};
} else {
throw new \RuntimeException("Property '{$property}' doesn't exist!");
}
return null;
}