You are here

public function SimpleAnnotationReader::getClassAnnotations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php \Doctrine\Common\Annotations\SimpleAnnotationReader::getClassAnnotations()

Gets the annotations applied to a class.

Parameters

\ReflectionClass $class The ReflectionClass of the class from which: the class annotations should be read.

Return value

array An array of Annotations.

Overrides Reader::getClassAnnotations

1 call to SimpleAnnotationReader::getClassAnnotations()
SimpleAnnotationReader::getClassAnnotation in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
Gets a class annotation.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php, line 65

Class

SimpleAnnotationReader
Simple Annotation Reader.

Namespace

Doctrine\Common\Annotations

Code

public function getClassAnnotations(\ReflectionClass $class) {
  return $this->parser
    ->parse($class
    ->getDocComment(), 'class ' . $class
    ->getName());
}