1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Chemaclass\StockTicker\Domain\WriteModel; |
6
|
|
|
|
7
|
|
|
final class News extends AbstractWriteModel |
|
|
|
|
8
|
|
|
{ |
9
|
|
|
public const DATETIME = 'datetime'; |
10
|
|
|
public const TIMEZONE = 'timezone'; |
11
|
|
|
public const URL = 'url'; |
12
|
|
|
public const TITLE = 'title'; |
13
|
|
|
public const SUMMARY = 'summary'; |
14
|
|
|
public const SOURCE = 'source'; |
15
|
|
|
public const PUBLISHER = 'publisher'; |
16
|
|
|
public const AUTHOR = 'author'; |
17
|
|
|
public const IMAGES = 'images'; |
18
|
|
|
|
19
|
|
|
private const METADATA = [ |
20
|
|
|
self::DATETIME => [ |
21
|
|
|
'type' => self::TYPE_STRING, |
22
|
|
|
'mandatory' => true, |
23
|
|
|
], |
24
|
|
|
self::TIMEZONE => [ |
25
|
|
|
'type' => self::TYPE_STRING, |
26
|
|
|
'mandatory' => true, |
27
|
|
|
], |
28
|
|
|
self::URL => [ |
29
|
|
|
'type' => self::TYPE_STRING, |
30
|
|
|
'mandatory' => true, |
31
|
|
|
], |
32
|
|
|
self::TITLE => [ |
33
|
|
|
'type' => self::TYPE_STRING, |
34
|
|
|
'mandatory' => true, |
35
|
|
|
], |
36
|
|
|
self::SUMMARY => [ |
37
|
|
|
'type' => self::TYPE_STRING, |
38
|
|
|
], |
39
|
|
|
self::SOURCE => [ |
40
|
|
|
'type' => self::TYPE_STRING, |
41
|
|
|
'mandatory' => true, |
42
|
|
|
], |
43
|
|
|
self::PUBLISHER => [ |
44
|
|
|
'type' => self::TYPE_STRING, |
45
|
|
|
], |
46
|
|
|
self::AUTHOR => [ |
47
|
|
|
'type' => self::TYPE_STRING, |
48
|
|
|
], |
49
|
|
|
self::IMAGES => [ |
50
|
|
|
'type' => self::TYPE_ARRAY, |
51
|
|
|
], |
52
|
|
|
]; |
53
|
|
|
|
54
|
|
|
protected ?string $datetime = null; |
55
|
|
|
protected ?string $timezone = null; |
56
|
|
|
protected ?string $url = null; |
57
|
|
|
protected ?string $title = null; |
58
|
|
|
protected ?string $summary = null; |
59
|
|
|
protected ?string $source = null; |
60
|
|
|
protected ?string $publisher = null; |
61
|
|
|
protected ?string $author = null; |
62
|
|
|
protected ?array $images = null; |
63
|
|
|
|
64
|
3 |
|
public function getDatetime(): ?string |
65
|
|
|
{ |
66
|
3 |
|
return $this->datetime; |
67
|
|
|
} |
68
|
|
|
|
69
|
2 |
|
public function setDatetime(?string $datetime): self |
70
|
|
|
{ |
71
|
2 |
|
$this->datetime = $datetime; |
72
|
|
|
|
73
|
2 |
|
return $this; |
74
|
|
|
} |
75
|
|
|
|
76
|
1 |
|
public function getTimezone(): ?string |
77
|
|
|
{ |
78
|
1 |
|
return $this->timezone; |
79
|
|
|
} |
80
|
|
|
|
81
|
1 |
|
public function setTimezone(?string $timezone): self |
82
|
|
|
{ |
83
|
1 |
|
$this->timezone = $timezone; |
84
|
|
|
|
85
|
1 |
|
return $this; |
86
|
|
|
} |
87
|
|
|
|
88
|
1 |
|
public function getUrl(): ?string |
89
|
|
|
{ |
90
|
1 |
|
return $this->url; |
91
|
|
|
} |
92
|
|
|
|
93
|
1 |
|
public function setUrl(?string $url): self |
94
|
|
|
{ |
95
|
1 |
|
$this->url = $url; |
96
|
|
|
|
97
|
1 |
|
return $this; |
98
|
|
|
} |
99
|
|
|
|
100
|
1 |
|
public function getTitle(): ?string |
101
|
|
|
{ |
102
|
1 |
|
return $this->title; |
103
|
|
|
} |
104
|
|
|
|
105
|
2 |
|
public function setTitle(?string $title): self |
106
|
|
|
{ |
107
|
2 |
|
$this->title = $title; |
108
|
|
|
|
109
|
2 |
|
return $this; |
110
|
|
|
} |
111
|
|
|
|
112
|
1 |
|
public function getSummary(): ?string |
113
|
|
|
{ |
114
|
1 |
|
return $this->summary; |
115
|
|
|
} |
116
|
|
|
|
117
|
1 |
|
public function setSummary(?string $summary): self |
118
|
|
|
{ |
119
|
1 |
|
$this->summary = $summary; |
120
|
|
|
|
121
|
1 |
|
return $this; |
122
|
|
|
} |
123
|
|
|
|
124
|
1 |
|
public function getSource(): ?string |
125
|
|
|
{ |
126
|
1 |
|
return $this->source; |
127
|
|
|
} |
128
|
|
|
|
129
|
1 |
|
public function setSource(?string $source): self |
130
|
|
|
{ |
131
|
1 |
|
$this->source = $source; |
132
|
|
|
|
133
|
1 |
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
1 |
|
public function getPublisher(): ?string |
137
|
|
|
{ |
138
|
1 |
|
return $this->publisher; |
139
|
|
|
} |
140
|
|
|
|
141
|
1 |
|
public function setPublisher(?string $publisher): self |
142
|
|
|
{ |
143
|
1 |
|
$this->publisher = $publisher; |
144
|
|
|
|
145
|
1 |
|
return $this; |
146
|
|
|
} |
147
|
|
|
|
148
|
1 |
|
public function getAuthor(): ?string |
149
|
|
|
{ |
150
|
1 |
|
return $this->author; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
public function setAuthor(?string $author): void |
154
|
|
|
{ |
155
|
|
|
$this->author = $author; |
156
|
|
|
} |
157
|
|
|
|
158
|
1 |
|
public function getImages(): ?array |
159
|
|
|
{ |
160
|
1 |
|
return $this->images; |
161
|
|
|
} |
162
|
|
|
|
163
|
1 |
|
public function setImages(?array $images): self |
164
|
|
|
{ |
165
|
1 |
|
$this->images = $images; |
166
|
|
|
|
167
|
1 |
|
return $this; |
168
|
|
|
} |
169
|
|
|
|
170
|
13 |
|
protected function metadata(): array |
171
|
|
|
{ |
172
|
13 |
|
return self::METADATA; |
173
|
|
|
} |
174
|
|
|
} |
175
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths