X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FApi%2FMastodon%2FField.php;h=086432b40a8f89eb780561611fe7a08502d6b5af;hb=32bb0976046ef9fa2296d0aeb39a01b0b916dc1e;hp=07cd2e501b011518fdf72707b0bea28ec88eb05f;hpb=0de8e4db080b5739d77d6394eb5c2904e5d1b66f;p=friendica.git diff --git a/src/Object/Api/Mastodon/Field.php b/src/Object/Api/Mastodon/Field.php index 07cd2e501b..086432b40a 100644 --- a/src/Object/Api/Mastodon/Field.php +++ b/src/Object/Api/Mastodon/Field.php @@ -1,15 +1,34 @@ . + * + */ namespace Friendica\Object\Api\Mastodon; -use Friendica\BaseEntity; +use Friendica\BaseDataTransferObject; /** * Class Field * - * @see https://docs.joinmastodon.org/api/entities/#field + * @see https://docs.joinmastodon.org/entities/field/ */ -class Field extends BaseEntity +class Field extends BaseDataTransferObject { /** @var string */ protected $name; @@ -17,4 +36,12 @@ class Field extends BaseEntity protected $value; /** @var string (Datetime)*/ protected $verified_at; + + public function __construct(string $name, string $value) + { + $this->name = $name; + $this->value = $value; + // Link verification unsupported + $this->verified_at = null; + } }