2019-08-08 17:29:59 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\SocialEntity;
|
|
|
|
|
|
|
|
|
2024-05-09 11:01:43 +02:00
|
|
|
use App\Security\MastodonAccount;
|
2020-04-30 12:36:35 +02:00
|
|
|
use DateTime;
|
|
|
|
|
2019-08-08 17:29:59 +02:00
|
|
|
class Notification
|
|
|
|
{
|
|
|
|
/** @var string */
|
|
|
|
private $id;
|
|
|
|
/** @var string */
|
|
|
|
private $type;
|
2020-04-30 12:36:35 +02:00
|
|
|
/** @var DateTime */
|
2019-08-08 17:29:59 +02:00
|
|
|
private $created_at;
|
|
|
|
/** @var MastodonAccount */
|
|
|
|
private $account;
|
|
|
|
/** @var Status */
|
|
|
|
private $status;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getId(): string
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $id
|
|
|
|
*/
|
|
|
|
public function setId(string $id): void
|
|
|
|
{
|
|
|
|
$this->id = $id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getType(): string
|
|
|
|
{
|
|
|
|
return $this->type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $type
|
|
|
|
*/
|
|
|
|
public function setType(string $type): void
|
|
|
|
{
|
|
|
|
$this->type = $type;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-30 12:36:35 +02:00
|
|
|
* @return DateTime
|
2019-08-08 17:29:59 +02:00
|
|
|
*/
|
2020-04-30 12:36:35 +02:00
|
|
|
public function getCreatedAt(): DateTime
|
2019-08-08 17:29:59 +02:00
|
|
|
{
|
|
|
|
return $this->created_at;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-30 12:36:35 +02:00
|
|
|
* @param DateTime $created_at
|
2019-08-08 17:29:59 +02:00
|
|
|
*/
|
2020-04-30 12:36:35 +02:00
|
|
|
public function setCreatedAt(DateTime $created_at): void
|
2019-08-08 17:29:59 +02:00
|
|
|
{
|
|
|
|
$this->created_at = $created_at;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return MastodonAccount
|
|
|
|
*/
|
|
|
|
public function getAccount(): MastodonAccount
|
|
|
|
{
|
|
|
|
return $this->account;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param MastodonAccount $account
|
|
|
|
*/
|
|
|
|
public function setAccount(MastodonAccount $account): void
|
|
|
|
{
|
|
|
|
$this->account = $account;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Status
|
|
|
|
*/
|
|
|
|
public function getStatus(): ?Status
|
|
|
|
{
|
|
|
|
return $this->status;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Status $status
|
|
|
|
*/
|
|
|
|
public function setStatus(?Status $status): void
|
|
|
|
{
|
|
|
|
$this->status = $status;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|