<?php
use modules\phpdocannotations\Annotation;
use modules\phpdocannotations\AnnotationParser;
/**
* @Annotation()
*/
final class TestAnnotation {
public $key;
}
/**
* @TestAnnotation(key = "Hello world")
*/
class Test {
}
$testClassAnnotations = new AnnotationParser(Test::class);
$testAnnotation = $testClassAnnotations->getAnnotation(TestAnnotation::class);
echo $testAnnotation->key;
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
uppm/phpdocannotations
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A parser for PHP-Doc annotations.
Resources
Stars
Watchers
Forks
Packages 0
No packages published