src/Entity/Notification.php 1 location
|
@@ 39-41 (lines=3) @@
|
36 |
|
if (isset($properties['created_at'])) { |
37 |
|
$properties['created_at'] = map(\DateTimeImmutable::class, $properties['created_at']); |
38 |
|
} |
39 |
|
if (isset($properties['account'])) { |
40 |
|
$properties['account'] = map(Account::class, $properties['account']); |
41 |
|
} |
42 |
|
if (isset($properties['status'])) { |
43 |
|
$properties['status'] = map(Status::class, $properties['status']); |
44 |
|
} |
src/Entity/Status.php 1 location
|
@@ 67-69 (lines=3) @@
|
64 |
|
|
65 |
|
public function __construct(array $properties) |
66 |
|
{ |
67 |
|
if (isset($properties['account'])) { |
68 |
|
$properties['account'] = map (Account::class, $properties['account']); |
69 |
|
} |
70 |
|
if (isset($properties['reblog'])) { |
71 |
|
$properties['reblog'] = map(Status::class, $properties['reblog']); |
72 |
|
} |