2019-12-05 13:11:32 +00:00
|
|
|
<?php
|
|
|
|
|
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
|
|
|
}
|