src/Entity/Account.php 1 location
|
@@ 52-54 (lines=3) @@
|
| 49 |
|
|
| 50 |
|
public function __construct(array $properties) |
| 51 |
|
{ |
| 52 |
|
if (isset($properties['created_at'])) { |
| 53 |
|
$properties['created_at'] = map(\DateTimeImmutable::class, $properties['created_at']); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
$this->setProperties($properties); |
| 57 |
|
} |
src/Entity/Notification.php 1 location
|
@@ 36-38 (lines=3) @@
|
| 33 |
|
|
| 34 |
|
public function __construct(array $properties) |
| 35 |
|
{ |
| 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 |
|
} |
src/Entity/Status.php 1 location
|
@@ 73-75 (lines=3) @@
|
| 70 |
|
if (isset($properties['reblog'])) { |
| 71 |
|
$properties['reblog'] = map(Status::class, $properties['reblog']); |
| 72 |
|
} |
| 73 |
|
if (isset($properties['created_at'])) { |
| 74 |
|
$properties['created_at'] = map(\DateTimeImmutable::class, $properties['created_at']); |
| 75 |
|
} |
| 76 |
|
if (isset($properties['media_attachments'])) { |
| 77 |
|
$properties['media_attachments'] = map([Attachment::class], $properties['media_attachments']); |
| 78 |
|
} |