| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | abstract class AbstractCustomExtension implements CustomExtensionInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $rootPath; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $machineName; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $rootPath |
||
| 30 | * @param string $machineName |
||
| 31 | */ |
||
| 32 | 41 | public function __construct(string $rootPath, string $machineName) |
|
| 33 | { |
||
| 34 | 41 | $this->rootPath = $rootPath; |
|
| 35 | 41 | $this->machineName = $machineName; |
|
| 36 | 41 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | public function getRootPath(): string |
|
| 42 | { |
||
| 43 | 1 | return $this->rootPath; |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 5 | public function getMachineName(): string |
|
| 50 | { |
||
| 51 | 5 | return $this->machineName; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 14 | public function serialize(): ?string |
|
| 62 | )); |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | 10 | public function unserialize($serialized): void |
|
| 71 | 10 | } |
|
| 72 | } |
||
| 73 |