| Total Complexity | 6 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class Styling |
||
| 8 | { |
||
| 9 | const THEME_DEFAULT = 'DEFAULT'; |
||
| 10 | const THEME_SIX = 'SIX'; |
||
| 11 | const THEME_NONE = 'NONE'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string|null |
||
| 15 | * @SerializedName("CssUrl") |
||
| 16 | */ |
||
| 17 | private $cssUrl; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var bool|null |
||
| 21 | * @SerializedName("ContentSecurityEnabled") |
||
| 22 | */ |
||
| 23 | private $contentSecurityEnabled; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string|null |
||
| 27 | * @SerializedName("Theme") |
||
| 28 | */ |
||
| 29 | private $theme; |
||
| 30 | |||
| 31 | public function getCssUrl(): ?string |
||
| 32 | { |
||
| 33 | return $this->cssUrl; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @deprecated This feature will be removed in one of the next versions of the Saferpay API |
||
| 38 | * Consider using payment page config (PPConfig) or Saferpay Fields instead. |
||
| 39 | */ |
||
| 40 | public function setCssUrl(?string $cssUrl): self |
||
| 41 | { |
||
| 42 | $this->cssUrl = $cssUrl; |
||
| 43 | |||
| 44 | return $this; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function isContentSecurityEnabled(): ?bool |
||
| 50 | } |
||
| 51 | |||
| 52 | public function setContentSecurityEnabled(?bool $contentSecurityEnabled): self |
||
| 53 | { |
||
| 54 | $this->contentSecurityEnabled = $contentSecurityEnabled; |
||
| 55 | |||
| 56 | return $this; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function getTheme(): ?string |
||
| 62 | } |
||
| 63 | |||
| 64 | public function setTheme(?string $theme): self |
||
| 69 | } |
||
| 70 | } |
||
| 71 |