friendica-github/src/Object/Api/Mastodon/Field.php

29 lines
507 B
PHP
Raw Normal View History

2019-12-05 13:11:32 +00:00
<?php
namespace Friendica\Object\Api\Mastodon;
use Friendica\BaseEntity;
2019-12-05 13:11:32 +00:00
/**
* Class Field
*
* @see https://docs.joinmastodon.org/entities/field/
2019-12-05 13:11:32 +00:00
*/
class Field extends BaseEntity
2019-12-05 13:11:32 +00:00
{
/** @var string */
protected $name;
2019-12-05 13:11:32 +00:00
/** @var string (HTML) */
protected $value;
2019-12-05 13:11:32 +00:00
/** @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;
}
2019-12-05 13:11:32 +00:00
}