| 1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
| 12 | trait LinksTrait |
||
| 13 | { |
||
| 14 | /* ------------------------------------------------------------------------------------------------ |
||
| 15 | | Main Functions |
||
| 16 | | ------------------------------------------------------------------------------------------------ |
||
| 17 | */ |
||
| 18 | /** |
||
| 19 | * Merge package links of the given type into a RootPackageInterface |
||
| 20 | * |
||
| 21 | * @param string $type 'conflict', 'replace' or 'provide' |
||
| 22 | * @param \Composer\Package\RootPackageInterface $root |
||
| 23 | */ |
||
| 24 | protected function mergePackageLinks($type, RootPackageInterface $root) |
||
| 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: