Styling   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 62
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A isContentSecurityEnabled() 0 3 1
A getTheme() 0 3 1
A getCssUrl() 0 3 1
A setContentSecurityEnabled() 0 5 1
A setTheme() 0 5 1
A setCssUrl() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
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
50
    {
51
        return $this->contentSecurityEnabled;
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
62
    {
63
        return $this->theme;
64
    }
65
66
    public function setTheme(?string $theme): self
67
    {
68
        $this->theme = $theme;
69
70
        return $this;
71
    }
72
}
73