function Annotation::__get

Error handler for unknown property accessor in Annotation class.

Throws

BadMethodCallException

File

core/lib/Drupal/Component/Annotation/Doctrine/Annotation.php, line 57

Class

Annotation
Annotations class.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function __get(string $name) : mixed {
  throw new BadMethodCallException(sprintf("Unknown property '%s' on annotation '%s'.", $name, static::class));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.