| 1 | <?php |
||
| 7 | trait Configurable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * setUp |
||
| 11 | * Set up Smsa Configuration by the given config array |
||
| 12 | * The array has 'key' and 'uri' as keys to it's values. |
||
| 13 | * |
||
| 14 | * @param array|null $config |
||
| 15 | * |
||
| 16 | * @return $this |
||
| 17 | */ |
||
| 18 | 7 | public function setUp($config = []) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * nullValues |
||
| 37 | * Set the default value of the empty values that shall be sent to SECOM. |
||
| 38 | * |
||
| 39 | * @param $value |
||
| 40 | * |
||
| 41 | * @return $this |
||
| 42 | */ |
||
| 43 | 1 | public function nullValues($value) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * uri |
||
| 52 | * Set the WSDL uri. |
||
| 53 | * |
||
| 54 | * @param $uri |
||
| 55 | * |
||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function uri($uri) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * key |
||
| 71 | * Set the SMSA Key. |
||
| 72 | * |
||
| 73 | * @param $passkey |
||
| 74 | * |
||
| 75 | * @return $this |
||
| 76 | */ |
||
| 77 | 2 | public function key($passkey) |
|
| 83 | |||
| 84 | /** |
||
| 85 | * getKey |
||
| 86 | * Get SMSA Key. |
||
| 87 | * |
||
| 88 | * @return |
||
| 89 | */ |
||
| 90 | 8 | public function getKey() |
|
| 94 | } |
||
| 95 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: