1 | <?php |
||
7 | trait CanRetrieveInputValues |
||
8 | { |
||
9 | use SanitizeInput; |
||
10 | |||
11 | /** |
||
12 | * Console input interface. |
||
13 | * |
||
14 | * @var \Symfony\Component\Console\Input\InputInterface |
||
15 | */ |
||
16 | protected $input; |
||
17 | |||
18 | /** |
||
19 | * Get analysis emulation mode. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | protected function getMode() :string |
||
29 | |||
30 | /** |
||
31 | * Get URL prefix from input. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | protected function getUrlPrefix() :string |
||
43 | |||
44 | /** |
||
45 | * Get the chrome flags. |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | protected function getChromeFlags() :array |
||
61 | |||
62 | /** |
||
63 | * Get minimal performance score. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | protected function getPerformanceScore() :string |
||
73 | |||
74 | /** |
||
75 | * Get minimal best-practices score. |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function getBestPracticesScore() :string |
||
85 | |||
86 | /** |
||
87 | * Get minimal accessibility score. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | protected function getAccessibilityScore() :string |
||
97 | |||
98 | /** |
||
99 | * Get minimal SEO score. |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | protected function getSeoScore() :string |
||
109 | |||
110 | /** |
||
111 | * Get minimal PWA score. |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | protected function getPwaScore() :string |
||
121 | |||
122 | /** |
||
123 | * Get the default chrome flags. |
||
124 | * |
||
125 | * @return array |
||
126 | */ |
||
127 | abstract protected function getDefaultChromeFlags() :array; |
||
128 | } |
||
129 |