* Instances of Comment contain the extracted information.
*
* @see Builder for the logic to create an instance of this class.
* @phan-pure
* @phan-file-suppress PhanAccessReadOnlyProperty TODO: Add a way to whitelist private methods that are only accessible from initializers (__construct, __wakeup, etc.)
*/
classComment
{
publicconstON_CLASS=1;
publicconstON_VAR=2;
publicconstON_PROPERTY=3;
publicconstON_CONST=4;
// TODO: Add another type for closure. (e.g. (at)phan-closure-scope)
publicconstON_METHOD=5;
publicconstON_FUNCTION=6;
/** @internal this may be refactored to stop using this constant */
publicconstON_ANY=-1;
// List of types that are function-like (e.g. have params and function body)
publicconstFUNCTION_LIKE=[
self::ON_METHOD,
self::ON_FUNCTION,
];
// Lists of types that can have (at)var annotations.
// @phan-suppress-next-line PhanSideEffectFreeForeachBody applyOverride is annotated as @phan-pure due to the catch-all annotation, so phan treats this like it has no side effects.