Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Attribute extends Variable |
||
11 | { |
||
12 | private static $symbols = [ |
||
13 | 'private' => '-', |
||
14 | 'public' => '+', |
||
15 | 'protected' => '#', |
||
16 | ]; |
||
17 | |||
18 | /** @var string */ |
||
19 | public $modifier; |
||
20 | |||
21 | public function __construct(string $name, string $modifier = 'public', string $type = null) |
||
22 | { |
||
23 | parent::__construct($name, $type); |
||
24 | $this->modifier = $modifier; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * It doesn't currently support information type |
||
29 | * |
||
30 | * @see plGraphvizProcessor#getClassDefinition In its original version |
||
31 | */ |
||
32 | public function __toString() |
||
35 | } |
||
36 | } |
||
37 |