1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
12 | trait LinksTrait |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Traits |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | use PackageTrait; |
||
19 | |||
20 | /* ------------------------------------------------------------------------------------------------ |
||
21 | | Main Functions |
||
22 | | ------------------------------------------------------------------------------------------------ |
||
23 | */ |
||
24 | /** |
||
25 | * Merge package links of the given type into a RootPackageInterface |
||
26 | * |
||
27 | * @param string $type 'conflict', 'replace' or 'provide' |
||
28 | * @param \Composer\Package\RootPackageInterface $root |
||
29 | */ |
||
30 | protected function mergePackageLinks($type, RootPackageInterface $root) |
||
55 | |||
56 | /** |
||
57 | * Update Links with a 'self.version' constraint with the root package's version. |
||
58 | * |
||
59 | * @param string $type |
||
60 | * @param array $links |
||
61 | * @param \Composer\Package\RootPackageInterface $root |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | abstract protected function replaceSelfVersionDependencies( |
||
68 | } |
||
69 |