You are here

public function Identifier::__get in Markdown 8.2

File

src/Annotation/Identifier.php, line 120

Class

Identifier
Creates an identifier for use in annotation objects.

Namespace

Drupal\markdown\Annotation

Code

public function __get($name) {
  $method = static::converter()
    ->denormalize("get_{$name}");
  if (method_exists($this, $method)) {
    return call_user_func([
      $this,
      $method,
    ]);
  }
  @trigger_error('Unknown property: ' . $name, E_USER_WARNING);
  return $this->value;
}