/** * Gets annotations * * @param string|null $type The annotation type * @return AclAnnotation[] */ public function getAnnotations($type = null) { $this->ensureAnnotationsLoaded(); return $this->storage->getAnnotations($type); }