| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ClassDiagramConfiguration extends DigraphConfiguration |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | private $imageProcessor; |
||
| 16 | |||
| 17 | 18 | public function __construct(array $input) |
|
| 18 | { |
||
| 19 | 18 | parent::__construct($input); |
|
| 20 | 18 | $this->setImageProcessor($input['processor']); |
|
| 21 | 12 | } |
|
| 22 | |||
| 23 | 9 | public function isDotProcessor(): bool |
|
| 24 | { |
||
| 25 | 9 | return $this->imageProcessor === 'dot'; |
|
| 26 | } |
||
| 27 | |||
| 28 | 18 | private function setImageProcessor(?string $imageProcessor): void |
|
| 34 | 12 | } |
|
| 35 | } |
||
| 36 |