<?php
namespace Bundles\Messenger\Entity;
use Bundles\Messenger\Repository\EventRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\User;
use App\Entity\CurrencyPair;
/**
* @ORM\Entity(repositoryClass=EventRepository::class)
*/
class Event
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50)
*/
private $type;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="events")
* @ORM\JoinColumn(nullable=false)
*/
private $User;
/**
* @ORM\ManyToOne(targetEntity=CurrencyPair::class)
*/
private $CurrencyPair;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sendSms = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sendEmail = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sendWebpush = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $anytime = false;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $sentCount = 0;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private $repeatTimes = 0;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $active = true;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $updated = '';
/**
* Breakeven rate
* @ORM\Column(type="string", length=255)
*/
private $point;
/**
* @ORM\Column(type="string", length=255)
*/
private $message = '';
/**
* @ORM\Column(type="integer", nullable=true)
* int
*/
private $flowId;
/**
* @ORM\Column(type="boolean")
*/
private $needCheck = true;
/**
* @ORM\Column(type="string", length=50)
*/
private $objectType;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getUser(): ?User
{
return $this->User;
}
public function setUser(?User $User): self
{
$this->User = $User;
return $this;
}
public function getCurrencyPair(): ?CurrencyPair
{
return $this->CurrencyPair;
}
public function setCurrencyPair(?CurrencyPair $CurrencyPair): self
{
$this->CurrencyPair = $CurrencyPair;
return $this;
}
public function isSendSms(): ?bool
{
return $this->sendSms;
}
public function setSendSms(?bool $sendSms): self
{
$this->sendSms = $sendSms;
return $this;
}
public function isSendEmail(): ?bool
{
return $this->sendEmail;
}
public function setSendEmail(?bool $sendEmail): self
{
$this->sendEmail = $sendEmail;
return $this;
}
public function isSendWebpush(): ?bool
{
return $this->sendWebpush;
}
public function setSendWebpush(?bool $sendWebpush): self
{
$this->sendWebpush = $sendWebpush;
return $this;
}
public function isAnytime(): ?bool
{
return $this->anytime;
}
public function setAnytime(?bool $anytime): self
{
$this->anytime = $anytime;
return $this;
}
public function getSentCount(): ?int
{
return $this->sentCount;
}
public function setSentCount(?int $sentCount): self
{
$this->sentCount = $sentCount;
return $this;
}
public function getRepeatTimes(): ?int
{
return $this->repeatTimes;
}
public function setRepeatTimes(?int $repeatTimes): self
{
$this->repeatTimes = $repeatTimes;
return $this;
}
public function getPoint(): ?string
{
return $this->point;
}
public function setPoint(string $point): self
{
$this->point = $point;
return $this;
}
/**
* @return mixed
*/
public function getActive() {
return $this->active;
}
/**
* @param mixed $active
*/
public function setActive($active): void {
$this->active = $active;
}
/**
* @return string
*/
public function getUpdated(): string {
return $this->updated;
}
/**
* @param string $updated
*/
public function setUpdated(string $updated): void {
$this->updated = $updated;
}
/**
* Kai reiksme perlipo per nustatyta, pazymime, kad nereikia tikrinti/siusti infos,
* kol spoto reiksme auksciau uz nustatyta ir kol nepasikeis salygos, pranesimu siusti nereikia
* @return bool
*/
public function isNeedCheck(): bool {
return $this->needCheck;
}
/**
* @param bool $needCheck
*/
public function setNeedCheck(bool $needCheck): void {
$this->needCheck = $needCheck;
}
/**
* @return string
*/
public function getMessage(): string {
return $this->message;
}
/**
* @param string $message
*/
public function setMessage(string $message): void {
$this->message = $message;
}
/**
* @return mixed
*/
public function getFlowId() {
return $this->flowId;
}
/**
* @param mixed $flowId
*/
public function setFlowId($flowId): void {
$this->flowId = $flowId;
}
/**
* @return mixed
*/
public function getObjectType() {
return $this->objectType;
}
/**
* @param mixed $objectType
*/
public function setObjectType($objectType): void {
$this->objectType = $objectType;
}
}