| 1 | <?php | ||
| 7 | trait ControlWsdl | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * downloadWsdl | ||
| 11 | * Insert description here. | ||
| 12 | * | ||
| 13 | * @param $path | ||
| 14 | * | ||
| 15 | * @return | ||
| 16 | */ | ||
| 17 | public function downloadWsdl($path = null) | ||
| 28 | |||
| 29 | /** | ||
| 30 | * setWsdlFilePath | ||
| 31 | * Insert description here. | ||
| 32 | * | ||
| 33 | * @return | ||
| 34 | */ | ||
| 35 | 5 | private function setWsdlFilePath() | |
| 39 | |||
| 40 | /** | ||
| 41 | * getWsdlFilePath | ||
| 42 | * Insert description here. | ||
| 43 | * | ||
| 44 | * @return | ||
| 45 | */ | ||
| 46 | 3 | private function getWsdlFilePath() | |
| 52 | } | ||
| 53 | 
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: