mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-08 23:21:50 +02:00
84 lines
1.3 KiB
PHP
84 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\SocialEntity;
|
|
|
|
|
|
use DateTimeInterface;
|
|
|
|
class CustomField
|
|
{
|
|
|
|
private $id;
|
|
|
|
private $name;
|
|
|
|
private $value;
|
|
|
|
private $verified_at;
|
|
|
|
private $mastodonAccount;
|
|
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getValue(): ?string
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
public function setValue(?string $value): self
|
|
{
|
|
$this->value = $value;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getVerifiedAt(): ?DateTimeInterface
|
|
{
|
|
return $this->verified_at;
|
|
}
|
|
|
|
public function setVerifiedAt(?DateTimeInterface $verified_at): self
|
|
{
|
|
$this->verified_at = $verified_at;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getMastodonAccount(): ?MastodonAccount
|
|
{
|
|
return $this->mastodonAccount;
|
|
}
|
|
|
|
public function setMastodonAccount(?MastodonAccount $mastodonAccount): self
|
|
{
|
|
$this->mastodonAccount = $mastodonAccount;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return $this->getName() ? $this->getName() : "";
|
|
}
|
|
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(?string $name): self
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|