| Total Complexity | 5 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Dependent |
||
| 13 | { |
||
| 14 | /** @var CompositeRepository */ |
||
| 15 | private $repository; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param RepositoryInterface $repository |
||
| 21 | */ |
||
| 22 | 1 | public function __construct(RepositoryInterface $repository) |
|
| 23 | { |
||
| 24 | 1 | $this->repository = new CompositeRepository([$repository]); |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Retrieves the dependents of a package in a recursive way. |
||
| 29 | * |
||
| 30 | * @param string $packageName |
||
| 31 | * @param bool $returnContext |
||
| 32 | * @param array $context |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 10 | public function getDependents( |
|
| 68 | } |
||
| 69 | } |
||
| 70 |