Passed
Pull Request — master (#28)
by Manuel
02:19
created

Styling::setTheme()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
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
48
    {
49
        return $this->contentSecurityEnabled;
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
60
    {
61
        return $this->theme;
62
    }
63
64
    public function setTheme(?string $theme): self
65
    {
66
        $this->theme = $theme;
67
68
        return $this;
69
    }
70
}
71