| 1 | <?php namespace Modules\Core\Console\Installers; |
||
| 8 | class Installer |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $scripts = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Filesystem $finder |
||
| 17 | * @param Application $app |
||
| 18 | * @param Composer $composer |
||
| 19 | */ |
||
| 20 | public function __construct(Application $app, Filesystem $finder, Composer $composer) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $scripts |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function stack(array $scripts) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Fire install scripts |
||
| 40 | * @param Command $command |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function install(Command $command) |
||
| 57 | } |
||
| 58 |
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: