public function getProperty($name) { if ($this->hasProperty($name)) { return $this->properties[$name]; } throw new InvalidArgumentException(sprintf('Property %s does not exist in class %s', $name, $this->reflection->getName())); }