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