1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
11 | trait SuggestsTrait |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Main Functions |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** |
||
18 | * Merge suggested packages into a RootPackage. |
||
19 | * |
||
20 | * @param \Composer\Package\RootPackageInterface $root |
||
21 | */ |
||
22 | protected function mergeSuggests(RootPackageInterface $root) |
||
30 | } |
||
31 |
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: