function Annotation::__set

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Annotation/Doctrine/Annotation.php \Drupal\Component\Annotation\Doctrine\Annotation::__set()

Error handler for unknown property mutator in Annotation class.

Parameters

mixed $value Property value.:

Throws

BadMethodCallException

File

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

Class

Annotation
Annotations class.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function __set(string $name, $value) {
  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.