AnnotationHelper
\nn\t3::AnnotationHelper()
Various methods for parsing PHP annotations
Overview of Methods
\nn\t3::AnnotationHelper()->parse($rawAnnotation = '', $namespaces = []);
parse annotations and return an array with the "normal" comment block and the individual individual annotations from a DocComment.
\Nng\Nnhelpers\Helpers\AnnotationHelper::parse( '...' );
Copied!
Only fetch annotations that are in a specific namespace.
In this example, only annotations that begin with @nn\rest
are fetched, e.g. @nn\rest\access ...
\Nng\Nnhelpers\Helpers\AnnotationHelper::parse( '...', 'nn\rest' );
\Nng\Nnhelpers\Helpers\AnnotationHelper::parse( '...', ['nn\rest', 'whatever'] );
Copied!
| @return array