public function __get($name) { throw new \BadMethodCallException(sprintf("Unknown property '%s' on annotation '%s'.", $name, get_class($this))); }