1<?php 2 3/* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12#[Attribute(Attribute::TARGET_CLASS)] 13final class Attribute 14{ 15 public const TARGET_CLASS = 1; 16 public const TARGET_FUNCTION = 2; 17 public const TARGET_METHOD = 4; 18 public const TARGET_PROPERTY = 8; 19 public const TARGET_CLASS_CONSTANT = 16; 20 public const TARGET_PARAMETER = 32; 21 public const TARGET_ALL = 63; 22 public const IS_REPEATABLE = 64; 23 24 /** @var int */ 25 public $flags; 26 27 public function __construct(int $flags = self::TARGET_ALL) 28 { 29 $this->flags = $flags; 30 } 31} 32