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 |
||
41 | |||
42 | /** |
||
43 | * Get the chrome flags. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function getChromeFlags() :array |
||
59 | |||
60 | /** |
||
61 | * Get minimal performance score. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | protected function getPerformanceScore() :string |
||
71 | |||
72 | /** |
||
73 | * Get minimal best-practices score. |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | protected function getBestPracticesScore() :string |
||
83 | |||
84 | /** |
||
85 | * Get minimal accessibility score. |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | protected function getAccessibilityScore() :string |
||
95 | |||
96 | /** |
||
97 | * Get minimal SEO score. |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | protected function getSeoScore() :string |
||
107 | |||
108 | /** |
||
109 | * Get minimal PWA score. |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | protected function getPwaScore() :string |
||
119 | |||
120 | /** |
||
121 | * Get the default chrome flags. |
||
122 | * |
||
123 | * @return array |
||
124 | */ |
||
125 | abstract protected function getDefaultChromeFlags() :array; |
||
126 | } |
||
127 |