| 1 | <?php |
||
| 9 | class Config |
||
| 10 | { |
||
| 11 | public static $config = [ |
||
| 12 | 'wsdl_file_path' => __DIR__.'/data/SMSA.wsdl', |
||
| 13 | 'smsa_testing_key' => 'my-smsa-test-key', |
||
| 14 | 'smsa_uri' => 'http://track.smsaexpress.com/SECOM/SMSAwebService.asmx?wsdl', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | public static $commonData = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * get |
||
| 21 | * Get a configuration by it's key name. |
||
| 22 | * |
||
| 23 | * @param string $name |
||
| 24 | * |
||
| 25 | * @return |
||
| 26 | */ |
||
| 27 | 5 | public static function get($name) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * set |
||
| 34 | * Set a configuration name and value. |
||
| 35 | * |
||
| 36 | * @param string $name |
||
| 37 | * @param mixed $name |
||
| 38 | * |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | public static function set($name, $value) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * getCommonData |
||
| 50 | * Get common key-value pairs that's used as arguments in Smsa methods. |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | 4 | public static function getCommonData() |
|
| 61 | } |
||
| 62 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.