Total Complexity | 6 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | trait ExecutableDefinitionTrait |
||
17 | { |
||
18 | use DefinitionTrait; |
||
19 | use ArgumentAwareTrait; |
||
20 | use DeprecateTrait; |
||
21 | use TypeAwareDefinitionTrait; |
||
22 | use NodeAwareDefinitionTrait; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $resolver; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $complexity; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | 22 | protected $roles = []; |
|
38 | |||
39 | 22 | /** |
|
40 | * @return null|string |
||
41 | */ |
||
42 | public function getResolver(): ?string |
||
43 | { |
||
44 | return $this->resolver; |
||
45 | } |
||
46 | |||
47 | 22 | /** |
|
48 | * @param null|string $resolver |
||
49 | 22 | * |
|
50 | * @return $this |
||
51 | 22 | */ |
|
52 | public function setResolver(?string $resolver) |
||
53 | { |
||
54 | 1 | $this->resolver = $resolver; |
|
55 | |||
56 | 1 | return $this; |
|
57 | } |
||
58 | |||
59 | 22 | public function getComplexity(): ?string |
|
60 | { |
||
61 | 22 | return $this->complexity; |
|
62 | } |
||
63 | 22 | ||
64 | public function setComplexity(?string $complexity): self |
||
65 | { |
||
66 | $this->complexity = $complexity; |
||
67 | |||
68 | return $this; |
||
69 | } |
||
70 | |||
71 | public function getRoles(): array |
||
74 | } |
||
75 | |||
76 | public function setRoles(array $roles): self |
||
81 | } |
||
82 | } |
||
83 |