1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
12 | trait LinksTrait |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** @var \Arcanedev\Composer\Utilities\Logger $logger */ |
||
19 | protected $logger; |
||
20 | |||
21 | /** @var \Composer\Package\CompletePackage $package */ |
||
22 | protected $package; |
||
23 | |||
24 | /* ------------------------------------------------------------------------------------------------ |
||
25 | | Main Functions |
||
26 | | ------------------------------------------------------------------------------------------------ |
||
27 | */ |
||
28 | /** |
||
29 | * Merge package links of the given type into a RootPackageInterface |
||
30 | * |
||
31 | * @param string $type 'conflict', 'replace' or 'provide' |
||
32 | * @param \Composer\Package\RootPackageInterface $root |
||
33 | */ |
||
34 | protected function mergePackageLinks($type, RootPackageInterface $root) |
||
60 | |||
61 | /** |
||
62 | * Update Links with a 'self.version' constraint with the root package's version. |
||
63 | * |
||
64 | * @param string $type |
||
65 | * @param array $links |
||
66 | * @param \Composer\Package\RootPackageInterface $root |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | abstract protected function replaceSelfVersionDependencies( |
||
73 | } |
||
74 |