]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Api/Mastodon/Attachment.php
Merge pull request #10359 from annando/milliseconds
[friendica.git] / src / Object / Api / Mastodon / Attachment.php
index 1651e9c40c48f3f0efe18962a3164cdd8386dc89..a70e9822d675ac84c160a26a45240a214853a34c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 
 namespace Friendica\Object\Api\Mastodon;
 
-use Friendica\BaseEntity;
+use Friendica\BaseDataTransferObject;
 
 /**
  * Class Attachment
  *
  * @see https://docs.joinmastodon.org/entities/attachment
  */
-class Attachment extends BaseEntity
+class Attachment extends BaseDataTransferObject
 {
        /** @var string */
        protected $id;
@@ -67,7 +67,7 @@ class Attachment extends BaseEntity
         *
         * @return array
         */
-       public function toArray()
+       public function toArray(): array
        {
                $attachment = parent::toArray();