mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 20:44:32 +02:00
33 lines
696 B
PHP
33 lines
696 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Object\Api\Mastodon;
|
|
|
|
use Friendica\BaseDataTransferObject;
|
|
|
|
/**
|
|
* Class Field
|
|
*
|
|
* @see https://docs.joinmastodon.org/entities/field/
|
|
*/
|
|
class Field extends BaseDataTransferObject
|
|
{
|
|
/** @var string */
|
|
protected $name;
|
|
/** @var string (HTML) */
|
|
protected $value;
|
|
/** @var string|null (Datetime)*/
|
|
protected $verified_at;
|
|
|
|
public function __construct(string $name, string $value)
|
|
{
|
|
$this->name = $name;
|
|
$this->value = $value;
|
|
// Link verification unsupported
|
|
$this->verified_at = null;
|
|
}
|
|
}
|