]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Api/Mastodon/Attachment.php
Merge pull request #10116 from mexon/mat/addon-console-command
[friendica.git] / src / Object / Api / Mastodon / Attachment.php
index 1651e9c40c48f3f0efe18962a3164cdd8386dc89..cc55b3715c1594c3393ff47d3f9fda79909b7b2a 100644 (file)
 
 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();