1 | <?php |
||
21 | class CliHelper |
||
22 | { |
||
23 | /** |
||
24 | * Name of username PHP constant or environmental variables |
||
25 | * |
||
26 | * @const REPORTING_CLOUD_USERNAME |
||
27 | */ |
||
28 | const USERNAME = 'REPORTING_CLOUD_USERNAME'; |
||
29 | |||
30 | /** |
||
31 | * Name of password PHP constant or environmental variables |
||
32 | * |
||
33 | * @const REPORTING_CLOUD_PASSWORD |
||
34 | */ |
||
35 | const PASSWORD = 'REPORTING_CLOUD_PASSWORD'; |
||
36 | |||
37 | /** |
||
38 | * Return error message explaining how to configure PHP constant or environmental variables |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public static function errorMessage() |
||
73 | |||
74 | /** |
||
75 | * Return the ReportingCloud username |
||
76 | * |
||
77 | * @return null|string |
||
78 | */ |
||
79 | public static function username() |
||
83 | |||
84 | /** |
||
85 | * Return the ReportingCloud password |
||
86 | * |
||
87 | * @return null|string |
||
88 | */ |
||
89 | public static function password() |
||
93 | |||
94 | /** |
||
95 | * Return the value of the PHP constant or environmental variable |
||
96 | * |
||
97 | * @param string $variable Variable |
||
98 | * |
||
99 | * @return null|string |
||
100 | */ |
||
101 | protected static function variable($variable) |
||
119 | |||
120 | } |