<?php
/**
* Created by PhpStorm.
* User: parcel
* Date: 10/16/18
* Time: 4:22 PM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity(repositoryClass="App\Repository\SmsRepository")
* @ORM\Table(name="sms")
*/
class Sms {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var \App\Entity\Transaction
* @Serializer\Type("App\Entity\Transaction")
* @ORM\ManyToOne(targetEntity="Transaction")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="transaction_id", referencedColumnName="id")
* })
*/
private $transaction;
/**
* @ORM\Column(type="string")
*/
private $status;
/**
* @ORM\Column(type="float")
*/
private $amount;
/**
* @ORM\Column(type="text")
*/
private $sms;
/**
* @ORM\Column(type="string", length=15)
*/
private $recepient;
/**
* @var \App\Entity\Organization
* @Serializer\Type("App\Entity\Organization")
* @ORM\ManyToOne(targetEntity="App\Entity\Organization")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="organization_id", referencedColumnName="id")
* })
*/
private $organization;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @var User
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
private $createdBy;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $statusCode;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $manuallySent;
/**
* @ORM\Column(type="string", nullable=false)
*/
private $action;
/**
* @ORM\Column(type="string")
*/
private mixed $messageId;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return Transaction
*/
public function getTransaction()
{
return $this->transaction;
}
/**
* @param Transaction $transaction
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return mixed
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param mixed $amount
*/
public function setAmount($amount)
{
$this->amount = $amount;
}
/**
* @return mixed
*/
public function getSms()
{
return $this->sms;
}
/**
* @param mixed $sms
*/
public function setSms($sms)
{
$this->sms = $sms;
}
/**
* @return Organization
*/
public function getOrganization()
{
return $this->organization;
}
/**
* @param Organization $organization
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
}
/**
* @return User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* @param User $createdBy
*/
public function setCreatedBy($createdBy)
{
$this->createdBy = $createdBy;
}
/**
* @return mixed
*/
public function getStatus()
{
return $this->status;
}
/**
* @param mixed $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return mixed
*/
public function getRecepient()
{
return $this->recepient;
}
/**
* @param mixed $recepient
*/
public function setRecepient($recepient)
{
$this->recepient = $recepient;
}
/**
* @return mixed
*/
public function getStatusCode()
{
return $this->statusCode;
}
/**
* @param mixed $statusCode
*/
public function setStatusCode($statusCode): void
{
$this->statusCode = $statusCode;
}
/**
* @return mixed
*/
public function getManuallySent()
{
return $this->manuallySent;
}
/**
* @param mixed $manuallySent
*/
public function setManuallySent($manuallySent): void
{
$this->manuallySent = $manuallySent;
}
/**
* @return mixed
*/
public function getAction()
{
return $this->action;
}
/**
* @param mixed $action
*/
public function setAction($action): void
{
$this->action = $action;
}
/**
* @return mixed
*/
public function getMessageId()
{
return $this->messageId;
}
/**
* @param mixed $messageId
*/
public function setMessageId($messageId): void
{
$this->messageId = $messageId;
}
}