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 IMAGES = 'images'; |
17
|
|
|
|
18
|
|
|
private const METADATA = [ |
19
|
|
|
self::DATETIME => [ |
20
|
|
|
'type' => self::TYPE_STRING, |
21
|
|
|
], |
22
|
|
|
self::TIMEZONE => [ |
23
|
|
|
'type' => self::TYPE_STRING, |
24
|
|
|
], |
25
|
|
|
self::URL => [ |
26
|
|
|
'type' => self::TYPE_STRING, |
27
|
|
|
], |
28
|
|
|
self::TITLE => [ |
29
|
|
|
'type' => self::TYPE_STRING, |
30
|
|
|
], |
31
|
|
|
self::SUMMARY => [ |
32
|
|
|
'type' => self::TYPE_STRING, |
33
|
|
|
], |
34
|
|
|
self::SOURCE => [ |
35
|
|
|
'type' => self::TYPE_STRING, |
36
|
|
|
], |
37
|
|
|
self::PUBLISHER => [ |
38
|
|
|
'type' => self::TYPE_STRING, |
39
|
|
|
], |
40
|
|
|
self::IMAGES => [ |
41
|
|
|
'type' => self::TYPE_ARRAY, |
42
|
|
|
], |
43
|
|
|
]; |
44
|
|
|
|
45
|
|
|
protected ?string $datetime = null; |
46
|
|
|
protected ?string $timezone = null; |
47
|
|
|
protected ?string $url = null; |
48
|
|
|
protected ?string $title = null; |
49
|
|
|
protected ?string $summary = null; |
50
|
|
|
protected ?string $source = null; |
51
|
|
|
protected ?string $publisher = null; |
52
|
|
|
protected ?array $images = null; |
53
|
|
|
|
54
|
3 |
|
public function getDatetime(): ?string |
55
|
|
|
{ |
56
|
3 |
|
return $this->datetime; |
57
|
|
|
} |
58
|
|
|
|
59
|
2 |
|
public function setDatetime(?string $datetime): self |
60
|
|
|
{ |
61
|
2 |
|
$this->datetime = $datetime; |
62
|
|
|
|
63
|
2 |
|
return $this; |
64
|
|
|
} |
65
|
|
|
|
66
|
1 |
|
public function getTimezone(): ?string |
67
|
|
|
{ |
68
|
1 |
|
return $this->timezone; |
69
|
|
|
} |
70
|
|
|
|
71
|
1 |
|
public function setTimezone(?string $timezone): self |
72
|
|
|
{ |
73
|
1 |
|
$this->timezone = $timezone; |
74
|
|
|
|
75
|
1 |
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
1 |
|
public function getUrl(): ?string |
79
|
|
|
{ |
80
|
1 |
|
return $this->url; |
81
|
|
|
} |
82
|
|
|
|
83
|
1 |
|
public function setUrl(?string $url): self |
84
|
|
|
{ |
85
|
1 |
|
$this->url = $url; |
86
|
|
|
|
87
|
1 |
|
return $this; |
88
|
|
|
} |
89
|
|
|
|
90
|
1 |
|
public function getTitle(): ?string |
91
|
|
|
{ |
92
|
1 |
|
return $this->title; |
93
|
|
|
} |
94
|
|
|
|
95
|
2 |
|
public function setTitle(?string $title): self |
96
|
|
|
{ |
97
|
2 |
|
$this->title = $title; |
98
|
|
|
|
99
|
2 |
|
return $this; |
100
|
|
|
} |
101
|
|
|
|
102
|
1 |
|
public function getSummary(): ?string |
103
|
|
|
{ |
104
|
1 |
|
return $this->summary; |
105
|
|
|
} |
106
|
|
|
|
107
|
1 |
|
public function setSummary(?string $summary): self |
108
|
|
|
{ |
109
|
1 |
|
$this->summary = $summary; |
110
|
|
|
|
111
|
1 |
|
return $this; |
112
|
|
|
} |
113
|
|
|
|
114
|
1 |
|
public function getSource(): ?string |
115
|
|
|
{ |
116
|
1 |
|
return $this->source; |
117
|
|
|
} |
118
|
|
|
|
119
|
1 |
|
public function setSource(?string $source): self |
120
|
|
|
{ |
121
|
1 |
|
$this->source = $source; |
122
|
|
|
|
123
|
1 |
|
return $this; |
124
|
|
|
} |
125
|
|
|
|
126
|
1 |
|
public function getPublisher(): ?string |
127
|
|
|
{ |
128
|
1 |
|
return $this->publisher; |
129
|
|
|
} |
130
|
|
|
|
131
|
1 |
|
public function setPublisher(?string $publisher): self |
132
|
|
|
{ |
133
|
1 |
|
$this->publisher = $publisher; |
134
|
|
|
|
135
|
1 |
|
return $this; |
136
|
|
|
} |
137
|
|
|
|
138
|
1 |
|
public function getImages(): ?array |
139
|
|
|
{ |
140
|
1 |
|
return $this->images; |
141
|
|
|
} |
142
|
|
|
|
143
|
1 |
|
public function setImages(?array $images): self |
144
|
|
|
{ |
145
|
1 |
|
$this->images = $images; |
146
|
|
|
|
147
|
1 |
|
return $this; |
148
|
|
|
} |
149
|
|
|
|
150
|
13 |
|
protected function metadata(): array |
151
|
|
|
{ |
152
|
13 |
|
return self::METADATA; |
153
|
|
|
} |
154
|
|
|
} |
155
|
|
|
|
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