Styling::isContentSecurityEnabled()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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