src/Entity/Forms/Support.php line 18
<?php
namespace App\Entity\Forms;
use App\Entity\Traits\CreatedTrait;
use App\Entity\Traits\DeletedTrait;
use App\Entity\Traits\UpdatedTrait;
use App\Entity\User\User;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Support
* @package App\Entity\Forms
*/
#[ORM\Table(name: 'forms_support')]
#[ORM\Entity(repositoryClass: 'App\Repository\Forms\SupportRepository')]
#[ORM\HasLifecycleCallbacks]
class Support
{
use CreatedTrait;
use UpdatedTrait;
use DeletedTrait;
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\Column(type: 'string', nullable: false)]
private ?string $caption;
#[ORM\Column(type: 'string', nullable: false)]
private ?string $email;
#[ORM\Column(type: 'string', nullable: true)]
private ?string $phone;
#[ORM\Column(type: 'text')]
private ?string $message;
#[ORM\ManyToOne(targetEntity: 'App\Entity\User\User')]
#[ORM\JoinColumn(nullable: true)]
private ?User $user;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return string|null
*/
public function getEmail(): ?string
{
return $this->email;
}
/**
* @param string|null $email
*/
public function setEmail(?string $email): void
{
$this->email = $email;
}
/**
* @return string|null
*/
public function getPhone(): ?string
{
return $this->phone;
}
/**
* @param string|null $phone
*/
public function setPhone(?string $phone): void
{
$this->phone = $phone;
}
/**
* @return string|null
*/
public function getMessage(): ?string
{
return $this->message;
}
/**
* @param string|null $message
*/
public function setMessage(?string $message): void
{
$this->message = $message;
}
/**
* @return User|null
*/
public function getUser(): ?User
{
return $this->user;
}
/**
* @param User|null $user
*/
public function setUser(?User $user): void
{
$this->user = $user;
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
}