Attribute.php
4 years ago
PhpToken.php
2 years ago
Stringable.php
4 years ago
UnhandledMatchError.php
2 years ago
ValueError.php
2 years ago
index.php
3 years ago
Attribute.php
21 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | #[\Attribute(\Attribute::TARGET_CLASS)] |
| 5 | final class Attribute |
| 6 | { |
| 7 | public const TARGET_CLASS = 1; |
| 8 | public const TARGET_FUNCTION = 2; |
| 9 | public const TARGET_METHOD = 4; |
| 10 | public const TARGET_PROPERTY = 8; |
| 11 | public const TARGET_CLASS_CONSTANT = 16; |
| 12 | public const TARGET_PARAMETER = 32; |
| 13 | public const TARGET_ALL = 63; |
| 14 | public const IS_REPEATABLE = 64; |
| 15 | public $flags; |
| 16 | public function __construct(int $flags = self::TARGET_ALL) |
| 17 | { |
| 18 | $this->flags = $flags; |
| 19 | } |
| 20 | } |
| 21 |