| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class Config |
||
| 17 | { |
||
| 18 | private $config; |
||
| 19 | |||
| 20 | 2 | public function __construct(RootPackageInterface $package) |
|
| 21 | { |
||
| 22 | 2 | $extra = $package->getExtra(); |
|
| 23 | 2 | $this->config = array_replace([ |
|
| 24 | 2 | 'use-prefix' => true, |
|
| 25 | 'release-branch' => 'master', |
||
| 26 | 2 | ], isset($extra['egabor-release']) ? $extra['egabor-release'] : []); |
|
| 27 | 2 | } |
|
| 28 | |||
| 29 | 2 | public function shouldUsePrefix() |
|
| 30 | { |
||
| 31 | 2 | return $this->config['use-prefix']; |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | public function getReleaseBranch() |
|
| 37 | } |
||
| 38 | } |
||
| 39 |