2019-12-05 13:11:32 +00:00
|
|
|
<?php
|
2020-02-09 14:45:36 +00:00
|
|
|
/**
|
|
|
|
* @copyright Copyright (C) 2020, Friendica
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-12-05 13:11:32 +00:00
|
|
|
|
2020-01-28 01:01:32 +00:00
|
|
|
namespace Friendica\Object\Api\Mastodon;
|
2020-01-05 22:29:54 +00:00
|
|
|
|
2020-01-28 01:01:32 +00:00
|
|
|
use Friendica\BaseEntity;
|
2019-12-05 13:11:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Field
|
|
|
|
*
|
2020-01-23 14:04:00 +00:00
|
|
|
* @see https://docs.joinmastodon.org/entities/field/
|
2019-12-05 13:11:32 +00:00
|
|
|
*/
|
2020-01-05 22:29:54 +00:00
|
|
|
class Field extends BaseEntity
|
2019-12-05 13:11:32 +00:00
|
|
|
{
|
|
|
|
/** @var string */
|
2020-01-05 22:29:54 +00:00
|
|
|
protected $name;
|
2019-12-05 13:11:32 +00:00
|
|
|
/** @var string (HTML) */
|
2020-01-05 22:29:54 +00:00
|
|
|
protected $value;
|
2019-12-05 13:11:32 +00:00
|
|
|
/** @var string (Datetime)*/
|
2020-01-05 22:29:54 +00:00
|
|
|
protected $verified_at;
|
2020-01-23 14:04:00 +00:00
|
|
|
|
|
|
|
public function __construct(string $name, string $value)
|
|
|
|
{
|
|
|
|
$this->name = $name;
|
|
|
|
$this->value = $value;
|
|
|
|
// Link verification unsupported
|
|
|
|
$this->verified_at = null;
|
|
|
|
}
|
2019-12-05 13:11:32 +00:00
|
|
|
}
|