| 1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
| 12 | trait AutoloadTrait |
||
| 13 | { |
||
| 14 | /* ------------------------------------------------------------------------------------------------ |
||
| 15 | | Main Functions |
||
| 16 | | ------------------------------------------------------------------------------------------------ |
||
| 17 | */ |
||
| 18 | /** |
||
| 19 | * Merge autoload into a RootPackage. |
||
| 20 | * |
||
| 21 | * @param \Composer\Package\RootPackageInterface $root |
||
| 22 | */ |
||
| 23 | private function mergeAutoload(RootPackageInterface $root) |
||
| 33 | } |
||
| 34 |
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: