1 | <?php |
||
27 | class Plugins implements PluginInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var Node |
||
31 | */ |
||
32 | private $node; |
||
33 | |||
34 | /** |
||
35 | * Cached configuration state |
||
36 | * |
||
37 | * @var Configuration |
||
38 | */ |
||
39 | private $configuration; |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 7 | public function setNode(Node $node) |
|
45 | { |
||
46 | 7 | $this->node = $node; |
|
47 | 7 | } |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 1 | public function getSlug(): string |
|
53 | { |
||
54 | 1 | return 'plugins'; |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 1 | public function getCategorySlug(): string |
|
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 2 | public function getConfiguration(): PromiseInterface |
|
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | 2 | public function getValues(): PromiseInterface |
|
93 | |||
94 | /** |
||
95 | * @return Metric |
||
96 | */ |
||
97 | 2 | private function getPluginCountValue(): Metric |
|
101 | |||
102 | /** |
||
103 | * @return Metric |
||
104 | */ |
||
105 | 2 | private function getPluginCategoryCountValue(): Metric |
|
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | public function getCapabilities(): array |
||
124 | } |
||
125 |