Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce annotation metadata #247

Merged
merged 1 commit into from
Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions lib/Doctrine/Annotations/Annotation/Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Doctrine\Annotations\Annotation;

use Doctrine\Annotations\Metadata\AnnotationTarget;

/**
* Annotation that can be used to signal to the parser
* to check the annotation target during the parsing process.
Expand All @@ -12,11 +14,11 @@
*/
final class Target
{
const TARGET_CLASS = 1;
const TARGET_METHOD = 2;
const TARGET_PROPERTY = 4;
const TARGET_ANNOTATION = 8;
const TARGET_ALL = 15;
public const TARGET_CLASS = AnnotationTarget::TARGET_CLASS;
public const TARGET_METHOD = AnnotationTarget::TARGET_METHOD;
public const TARGET_PROPERTY = AnnotationTarget::TARGET_PROPERTY;
public const TARGET_ANNOTATION = AnnotationTarget::TARGET_ANNOTATION;
public const TARGET_ALL = AnnotationTarget::TARGET_ALL;

/**
* @var array
Expand Down
Loading