| Total Complexity | 9 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class AppOptions extends AbstractOptions |
||
| 11 | { |
||
| 12 | use StringUtilsTrait; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $name = ''; |
||
| 16 | /** @var string */ |
||
| 17 | private $version = '1.0'; |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | * @deprecated |
||
| 21 | */ |
||
| 22 | private $secretKey = ''; |
||
| 23 | /** @var string|null */ |
||
| 24 | private $disableTrackParam; |
||
| 25 | |||
| 26 | 2 | public function getName(): string |
|
| 27 | { |
||
| 28 | 2 | return $this->name; |
|
| 29 | } |
||
| 30 | |||
| 31 | 6 | protected function setName(string $name): self |
|
| 32 | { |
||
| 33 | 6 | $this->name = $name; |
|
| 34 | 6 | return $this; |
|
| 35 | } |
||
| 36 | |||
| 37 | 2 | public function getVersion(): string |
|
| 38 | { |
||
| 39 | 2 | return $this->version; |
|
| 40 | } |
||
| 41 | |||
| 42 | 6 | protected function setVersion(string $version): self |
|
| 43 | { |
||
| 44 | 6 | $this->version = $version; |
|
| 45 | 6 | return $this; |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @deprecated |
||
| 50 | */ |
||
| 51 | 6 | public function getSecretKey(): string |
|
| 52 | { |
||
| 53 | 6 | return $this->secretKey; |
|
|
|
|||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @deprecated |
||
| 58 | */ |
||
| 59 | 6 | protected function setSecretKey(string $secretKey): self |
|
| 60 | { |
||
| 61 | 6 | $this->secretKey = $secretKey; |
|
| 62 | 6 | return $this; |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string|null |
||
| 67 | */ |
||
| 68 | 5 | public function getDisableTrackParam(): ?string |
|
| 71 | } |
||
| 72 | |||
| 73 | 4 | protected function setDisableTrackParam(?string $disableTrackParam): self |
|
| 74 | { |
||
| 75 | 4 | $this->disableTrackParam = $disableTrackParam; |
|
| 76 | 4 | return $this; |
|
| 77 | } |
||
| 78 | |||
| 79 | 7 | public function __toString(): string |
|
| 82 | } |
||
| 83 | } |
||
| 84 |