]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Api/Mastodon/Error.php
Use the owner, not the author
[friendica.git] / src / Object / Api / Mastodon / Error.php
index 0bfd1826c65ba4cfb5727c31c99676745b40b6b6..d348ee6aee1f314b602559942ac706643db7e431 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 
 namespace Friendica\Object\Api\Mastodon;
 
-use Friendica\BaseEntity;
+use Friendica\BaseDataTransferObject;
 
 /**
  * Class Error
  *
  * @see https://docs.joinmastodon.org/entities/error
  */
-class Error extends BaseEntity
+class Error extends BaseDataTransferObject
 {
        /** @var string */
        protected $error;
@@ -40,7 +40,6 @@ class Error extends BaseEntity
         *
         * @param string $error
         * @param string error_description
-        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(string $error, string $error_description)
        {
@@ -53,7 +52,7 @@ class Error extends BaseEntity
         *
         * @return array
         */
-       public function toArray()
+       public function toArray(): array
        {
                $error = parent::toArray();