| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ProjectTypeResolver |
||
| 15 | { |
||
| 16 | /** @var Composer */ |
||
| 17 | private $composer; |
||
| 18 | |||
| 19 | /** @var array */ |
||
| 20 | private $mapping = [ |
||
| 21 | 'magento2-module' => 'magento2', |
||
| 22 | 'magento-module' => 'magento1' |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor. |
||
| 27 | * |
||
| 28 | * @param Composer $composer |
||
| 29 | * @param array|null $mapping |
||
| 30 | */ |
||
| 31 | public function __construct(Composer $composer, array $mapping = null) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the type. |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function resolve(): string |
||
| 51 |