1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
11 | trait SuggestsTrait |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Properties |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** @var \Composer\Package\CompletePackage $package */ |
||
18 | protected $package; |
||
19 | |||
20 | /* ------------------------------------------------------------------------------------------------ |
||
21 | | Main Functions |
||
22 | | ------------------------------------------------------------------------------------------------ |
||
23 | */ |
||
24 | /** |
||
25 | * Merge suggested packages into a RootPackage. |
||
26 | * |
||
27 | * @param \Composer\Package\RootPackageInterface $root |
||
28 | */ |
||
29 | protected function mergeSuggests(RootPackageInterface $root) |
||
36 | |||
37 | /* ------------------------------------------------------------------------------------------------ |
||
38 | | Other Functions |
||
39 | | ------------------------------------------------------------------------------------------------ |
||
40 | */ |
||
41 | /** |
||
42 | * Get a full featured Package from a RootPackageInterface. |
||
43 | * |
||
44 | * @param \Composer\Package\RootPackageInterface|\Composer\Package\RootPackage $root |
||
45 | * @param string $method |
||
46 | * |
||
47 | * @return \Composer\Package\RootPackageInterface|\Composer\Package\RootPackage |
||
48 | */ |
||
49 | abstract protected function unwrapIfNeeded( |
||
52 | } |
||
53 |