#68 - refactor some of the notification classes to classes plugin to share them with comments

This commit is contained in:
isUnknown 2024-12-18 15:05:42 +01:00
parent 6ab18b1066
commit 3d4ddc12fc
9 changed files with 22 additions and 105 deletions

View file

@ -0,0 +1,22 @@
<?php
namespace adrienpayet\D2P\data\location;
class FileDetails
{
public string $uuid;
public string $url;
public function __construct(array $data)
{
$this->uuid = (string) $data->uuid();
$this->url = (string) $data->url();
}
public function toArray() {
return [
"uuid" => $this->uuid,
"url" => $this->url
];
}
}