Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?php
2
 
3
#[Attribute(Attribute::TARGET_CLASS)]
4
final class Attribute
5
{
6
    const TARGET_CLASS = 1;
7
    const TARGET_FUNCTION = 2;
8
    const TARGET_METHOD = 4;
9
    const TARGET_PROPERTY = 8;
10
    const TARGET_CLASS_CONSTANT = 16;
11
    const TARGET_PARAMETER = 32;
12
    const TARGET_ALL = 63;
13
    const IS_REPEATABLE = 64;
14
 
15
    /** @var int */
16
    public $flags;
17
 
18
    public function __construct(int $flags = Attribute::TARGET_ALL)
19
    {
20
        $this->flags = $flags;
21
    }
22
}