|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
/* |
|
6
|
|
|
* This file is part of the Superdesk Web Publisher Core Bundle. |
|
7
|
|
|
* |
|
8
|
|
|
* Copyright 2020 Sourcefabric z.ú. and contributors. |
|
9
|
|
|
* |
|
10
|
|
|
* For the full copyright and license information, please see the |
|
11
|
|
|
* AUTHORS and LICENSE files distributed with this source code. |
|
12
|
|
|
* |
|
13
|
|
|
* @copyright 2020 Sourcefabric z.ú |
|
14
|
|
|
* @license http://www.superdesk.org/license |
|
15
|
|
|
*/ |
|
16
|
|
|
|
|
17
|
|
|
namespace SWP\Bundle\CoreBundle\AppleNews\Document; |
|
18
|
|
|
|
|
19
|
|
|
use Symfony\Component\Serializer\Annotation\SerializedName; |
|
20
|
|
|
|
|
21
|
|
|
class ComponentTextStyles |
|
22
|
|
|
{ |
|
23
|
|
|
/** @var ComponentTextStyle */ |
|
24
|
|
|
private $default; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @SerializedName("default-body") |
|
28
|
|
|
* |
|
29
|
|
|
* @var ComponentTextStyle |
|
30
|
|
|
*/ |
|
31
|
|
|
private $defaultBody; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @SerializedName("default-title") |
|
35
|
|
|
* |
|
36
|
|
|
* @var ComponentTextStyle |
|
37
|
|
|
*/ |
|
38
|
|
|
private $defaultTitle; |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* @SerializedName("default-intro") |
|
42
|
|
|
* |
|
43
|
|
|
* @var ComponentTextStyle |
|
44
|
|
|
*/ |
|
45
|
|
|
private $defaultIntro; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @SerializedName("default-byline") |
|
49
|
|
|
* |
|
50
|
|
|
* @var ComponentTextStyle |
|
51
|
|
|
*/ |
|
52
|
|
|
private $defaultByline; |
|
53
|
|
|
|
|
54
|
|
|
public function getDefault(): ComponentTextStyle |
|
55
|
|
|
{ |
|
56
|
|
|
return $this->default; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
public function setDefault(ComponentTextStyle $default): void |
|
60
|
|
|
{ |
|
61
|
|
|
$this->default = $default; |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
public function getDefaultBody(): ComponentTextStyle |
|
65
|
|
|
{ |
|
66
|
|
|
return $this->defaultBody; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
public function setDefaultBody(ComponentTextStyle $defaultBody): void |
|
70
|
|
|
{ |
|
71
|
|
|
$this->defaultBody = $defaultBody; |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
public function getDefaultTitle(): ?ComponentTextStyle |
|
75
|
|
|
{ |
|
76
|
|
|
return $this->defaultTitle; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
public function setDefaultTitle(ComponentTextStyle $defaultTitle): void |
|
80
|
|
|
{ |
|
81
|
|
|
$this->defaultTitle = $defaultTitle; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
public function getDefaultIntro(): ?ComponentTextStyle |
|
85
|
|
|
{ |
|
86
|
|
|
return $this->defaultIntro; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
public function setDefaultIntro(ComponentTextStyle $defaultIntro): void |
|
90
|
|
|
{ |
|
91
|
|
|
$this->defaultIntro = $defaultIntro; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
public function getDefaultByline(): ?ComponentTextStyle |
|
95
|
|
|
{ |
|
96
|
|
|
return $this->defaultByline; |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
public function setDefaultByline(ComponentTextStyle $defaultByline): void |
|
100
|
|
|
{ |
|
101
|
|
|
$this->defaultByline = $defaultByline; |
|
102
|
|
|
} |
|
103
|
|
|
} |
|
104
|
|
|
|