@@ 118-126 (lines=9) @@ | ||
115 | /** |
|
116 | * @inheritdoc |
|
117 | */ |
|
118 | protected function getAliases(): array |
|
119 | { |
|
120 | return parent::getAliases() + [ |
|
121 | 'image' => new Alias('image', Image::class), |
|
122 | 'flavor' => new Alias('flavor', Flavor::class), |
|
123 | 'created' => new Alias('created', \DateTimeImmutable::class), |
|
124 | 'updated' => new Alias('updated', \DateTimeImmutable::class) |
|
125 | ]; |
|
126 | } |
|
127 | ||
128 | /** |
|
129 | * {@inheritDoc} |
@@ 90-98 (lines=9) @@ | ||
87 | /** |
|
88 | * @inheritdoc |
|
89 | */ |
|
90 | protected function getAliases(): array |
|
91 | { |
|
92 | return parent::getAliases() + [ |
|
93 | 'created_at' => new Alias('createdAt', \DateTimeImmutable::class), |
|
94 | 'updated_at' => new Alias('updatedAt', \DateTimeImmutable::class), |
|
95 | 'fileUri' => new Alias('fileUri', \GuzzleHttp\Psr7\Uri::class), |
|
96 | 'schemaUri' => new Alias('schemaUri', \GuzzleHttp\Psr7\Uri::class) |
|
97 | ]; |
|
98 | } |
|
99 | ||
100 | public function populateFromArray(array $data): self |
|
101 | { |