| 1 | <?php |
||
| 8 | trait MicroboardPathResolver |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Resolve the fully-qualified path to the stub. |
||
| 12 | * |
||
| 13 | * @param string $stub |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | protected function resolveStubPath($stub) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the destination class path. |
||
| 25 | * |
||
| 26 | * @param string $name |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | protected function getPath($name) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Add base_path to command options. |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | protected function pathOptions() |
||
| 50 | } |
||
| 51 |
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: