src/Entity/Message/Sms.php line 12
<?php
namespace App\Entity\Message;
use App\Entity\Traits\CreatedTrait;
use App\Entity\Traits\UpdatedTrait;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'message_sms')]
#[ORM\Entity]
#[ORM\HasLifecycleCallbacks]
class Sms
{
use CreatedTrait;
use UpdatedTrait;
public const STATUS_NEW = 'new';
public const STATUS_SEND = 'send';
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private int $id;
#[ORM\Column(type: 'string')]
private string $phone;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $text = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $sms_id = null;
#[ORM\Column(type: 'string')]
private string $status = self::STATUS_NEW;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getPhone(): string
{
return $this->phone;
}
/**
* @param string $phone
*/
public function setPhone(string $phone): void
{
$this->phone = $phone;
}
/**
* @return string|null
*/
public function getText(): ?string
{
return $this->text;
}
/**
* @param string|null $text
*/
public function setText(?string $text): void
{
$this->text = $text;
}
/**
* @return int|null
*/
public function getSmsId(): ?int
{
return $this->sms_id;
}
/**
* @param int|null $sms_id
*/
public function setSmsId(?int $sms_id): void
{
$this->sms_id = $sms_id;
}
/**
* @return string
*/
public function getStatus(): string
{
return $this->status;
}
/**
* @param string $status
*/
public function setStatus(string $status): void
{
$this->status = $status;
}
}