|
9 | 9 | final readonly class Supplier |
10 | 10 | { |
11 | 11 | /** |
12 | | - * @param Heading[] $headings |
13 | | - * @param Certification[] $certifications |
14 | | - * @param CertificationTotal[] $certificationTotals |
15 | | - * @param Product[] $products |
16 | | - * @param Person[] $personnel |
17 | | - * @param Brand[] $brands |
18 | | - * @param SocialLink[] $social |
19 | | - * @param Video[] $videos |
20 | | - * @param NewsArticle[] $news |
21 | | - * @param Whitepaper[] $whitepapers |
22 | | - * @param string[] $otherActivities |
| 12 | + * @param Heading[] $headings |
| 13 | + * @param Certification[] $certifications |
| 14 | + * @param CertificationTotal[] $certificationTotals |
| 15 | + * @param Product[] $products |
| 16 | + * @param Person[] $personnel |
| 17 | + * @param Brand[] $brands |
| 18 | + * @param SocialLink[] $social |
| 19 | + * @param Video[] $videos |
| 20 | + * @param NewsArticle[] $news |
| 21 | + * @param Whitepaper[] $whitepapers |
| 22 | + * @param string[] $otherActivities |
23 | 23 | */ |
24 | 24 | public function __construct( |
25 | 25 | public string $tgramsId, |
@@ -75,43 +75,43 @@ public static function fromArray(array $data): self |
75 | 75 | logoTitle: $data['logoTitle'] ?? null, |
76 | 76 | address: Address::fromArray($data['address'] ?? []), |
77 | 77 | headings: array_map( |
78 | | - static fn(array $h) => Heading::fromArray($h), |
| 78 | + static fn (array $h) => Heading::fromArray($h), |
79 | 79 | $data['headings'] ?? [] |
80 | 80 | ), |
81 | 81 | certifications: array_map( |
82 | | - static fn(array $c) => Certification::fromArray($c), |
| 82 | + static fn (array $c) => Certification::fromArray($c), |
83 | 83 | $data['certifications'] ?? [] |
84 | 84 | ), |
85 | 85 | certificationTotals: array_map( |
86 | | - static fn(array $ct) => CertificationTotal::fromArray($ct), |
| 86 | + static fn (array $ct) => CertificationTotal::fromArray($ct), |
87 | 87 | $data['certificationTotals'] ?? [] |
88 | 88 | ), |
89 | 89 | products: array_map( |
90 | | - static fn(array $p) => Product::fromArray($p), |
| 90 | + static fn (array $p) => Product::fromArray($p), |
91 | 91 | $data['products'] ?? [] |
92 | 92 | ), |
93 | 93 | personnel: array_map( |
94 | | - static fn(array $p) => Person::fromArray($p), |
| 94 | + static fn (array $p) => Person::fromArray($p), |
95 | 95 | $data['personnel'] ?? [] |
96 | 96 | ), |
97 | 97 | brands: array_map( |
98 | | - static fn(array $b) => Brand::fromArray($b), |
| 98 | + static fn (array $b) => Brand::fromArray($b), |
99 | 99 | $data['brands'] ?? [] |
100 | 100 | ), |
101 | 101 | social: array_map( |
102 | | - static fn(array $s) => SocialLink::fromArray($s), |
| 102 | + static fn (array $s) => SocialLink::fromArray($s), |
103 | 103 | $data['social'] ?? [] |
104 | 104 | ), |
105 | 105 | videos: array_map( |
106 | | - static fn(array $v) => Video::fromArray($v), |
| 106 | + static fn (array $v) => Video::fromArray($v), |
107 | 107 | $data['videos'] ?? [] |
108 | 108 | ), |
109 | 109 | news: array_map( |
110 | | - static fn(array $n) => NewsArticle::fromArray($n), |
| 110 | + static fn (array $n) => NewsArticle::fromArray($n), |
111 | 111 | $data['news'] ?? [] |
112 | 112 | ), |
113 | 113 | whitepapers: array_map( |
114 | | - static fn(array $w) => Whitepaper::fromArray($w), |
| 114 | + static fn (array $w) => Whitepaper::fromArray($w), |
115 | 115 | $data['whitepapers'] ?? [] |
116 | 116 | ), |
117 | 117 | otherActivities: $data['otherActivities'] ?? [], |
|
0 commit comments