public function offsetGet($prop) { $prop = $this->getRealPropertyName($prop); return isset($this->{$prop}) ? $this->{$prop}->value : null; }