| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class DigraphStyle |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | protected $theme; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | protected $attributes; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | protected $methods; |
||
| 23 | |||
| 24 | 108 | public function __construct(string $theme = 'phuml') |
|
| 25 | { |
||
| 26 | 108 | $this->theme = "{$theme}.html.twig"; |
|
| 27 | 108 | $this->setPartials(); |
|
| 28 | 108 | } |
|
| 29 | |||
| 30 | 84 | public function attributes(): string |
|
| 31 | { |
||
| 32 | 84 | return $this->attributes; |
|
| 33 | } |
||
| 34 | |||
| 35 | 84 | public function methods(): string |
|
| 38 | } |
||
| 39 | |||
| 40 | 90 | public function theme(): string |
|
| 43 | } |
||
| 44 | |||
| 45 | abstract protected function setPartials(): void; |
||
| 46 | } |
||
| 47 |