1 | <?php declare(strict_types = 1); |
||
13 | trait VisibilityTrait |
||
14 | { |
||
15 | /** @var string Method visibility */ |
||
16 | protected $visibility = ClassGenerator::VISIBILITY_PUBLIC; |
||
17 | |||
18 | /** @var bool Flag that method is static */ |
||
19 | protected $isStatic = false; |
||
20 | |||
21 | /** |
||
22 | * Set method to be static. |
||
23 | * |
||
24 | * @return $this |
||
25 | */ |
||
26 | public function defStatic() |
||
32 | |||
33 | /** |
||
34 | * Set protected property visibility. |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function defProtected() |
||
42 | |||
43 | /** |
||
44 | * Set property visibility. |
||
45 | * |
||
46 | * @param string $visibility Property visibility |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | protected function defVisibility(string $visibility) |
||
56 | |||
57 | /** |
||
58 | * Set private property visibility. |
||
59 | * |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function defPrivate() |
||
66 | } |
||
67 |