Account phpDoc and unnecessary method removal.
This commit is contained in:
parent
4d4493f7cd
commit
37e0d10611
|
@ -106,13 +106,6 @@ class Account
|
||||||
public function __construct(int $id)
|
public function __construct(int $id)
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ORM\PrePersist()
|
|
||||||
*/
|
|
||||||
public function prePersist(): void
|
|
||||||
{
|
|
||||||
$this->createdAt = new \DateTime();
|
$this->createdAt = new \DateTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,25 +122,16 @@ class Account
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return \DateTime
|
|
||||||
*/
|
|
||||||
public function getCreatedAt(): \DateTime
|
public function getCreatedAt(): \DateTime
|
||||||
{
|
{
|
||||||
return $this->createdAt;
|
return $this->createdAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return \DateTime
|
|
||||||
*/
|
|
||||||
public function getUpdatedAt(): \DateTime
|
public function getUpdatedAt(): \DateTime
|
||||||
{
|
{
|
||||||
return $this->updatedAt;
|
return $this->updatedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return \DateTime
|
|
||||||
*/
|
|
||||||
public function getLinkedAt(): \DateTime
|
public function getLinkedAt(): \DateTime
|
||||||
{
|
{
|
||||||
return $this->linkedAt;
|
return $this->linkedAt;
|
||||||
|
@ -222,9 +206,6 @@ class Account
|
||||||
return $this->user->getId();
|
return $this->user->getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Disables all notifications
|
|
||||||
*/
|
|
||||||
public function disableNotifications(): self
|
public function disableNotifications(): self
|
||||||
{
|
{
|
||||||
$this->subscriberNotification = false;
|
$this->subscriberNotification = false;
|
||||||
|
|
Loading…
Reference in a new issue