You are here

public function AnnotationObject::offsetGet in Markdown 8.2

2 calls to AnnotationObject::offsetGet()
AnnotationObject::doMerge in src/Annotation/AnnotationObject.php
Merges values with this plugin.
AnnotationObject::__get in src/Annotation/AnnotationObject.php

File

src/Annotation/AnnotationObject.php, line 316

Class

AnnotationObject
Base annotation class for retrieving the annotation as an object.

Namespace

Drupal\markdown\Annotation

Code

public function &offsetGet($offset) {
  $value = NULL;
  if (array_key_exists($offset, $this->_deprecatedProperties)) {
    if (isset($this->_deprecated[$offset])) {
      $this
        ->triggerDeprecation($offset);
      $value =& $this->_deprecated[$offset];
    }
  }
  elseif (property_exists($this, $offset)) {
    $value =& $this->{$offset};
  }
  return $value;
}