forked from morrning/hesabixCore
68 lines
1.3 KiB
PHP
68 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\PreInvoiceDocRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: PreInvoiceDocRepository::class)]
|
|
class PreInvoiceDoc
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'preInvoiceDocs')]
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
private ?User $submitter = null;
|
|
|
|
#[ORM\Column(length: 100)]
|
|
private ?string $code = null;
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'preInvoiceDocs')]
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
private ?Person $person = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getSubmitter(): ?User
|
|
{
|
|
return $this->submitter;
|
|
}
|
|
|
|
public function setSubmitter(?User $submitter): static
|
|
{
|
|
$this->submitter = $submitter;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getCode(): ?string
|
|
{
|
|
return $this->code;
|
|
}
|
|
|
|
public function setCode(string $code): static
|
|
{
|
|
$this->code = $code;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getPerson(): ?Person
|
|
{
|
|
return $this->person;
|
|
}
|
|
|
|
public function setPerson(?Person $person): static
|
|
{
|
|
$this->person = $person;
|
|
|
|
return $this;
|
|
}
|
|
}
|