<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\AcceptedRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AcceptedRepository::class)]
#[ApiResource]
class Accepted
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne]
private ?User $modified_user = null;
#[ORM\ManyToOne]
private ?User $created_by = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_entered = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_modified = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_accepted = null;
#[ORM\ManyToOne(inversedBy: 'acceptedsManager')]
private ?User $manager = null;
#[ORM\ManyToOne(inversedBy: 'acceptedsClients')]
private ?User $client = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $description = null;
#[ORM\ManyToOne(inversedBy: 'accepteds')]
private ?PreOrder $pre_order = null;
#[ORM\ManyToOne(inversedBy: 'accepteds')]
private ?Orders $order = null;
#[ORM\ManyToOne(inversedBy: 'accepteds')]
private ?LoadInvoice $load_invoice = null;
public function getId(): ?int
{
return $this->id;
}
public function getModifiedUser(): ?User
{
return $this->modified_user;
}
public function setModifiedUser(?User $modified_user): self
{
$this->modified_user = $modified_user;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getDateEntered(): ?\DateTimeInterface
{
return $this->date_entered;
}
public function setDateEntered(?\DateTimeInterface $date_entered): self
{
$this->date_entered = $date_entered;
return $this;
}
public function getDateModified(): ?\DateTimeInterface
{
return $this->date_modified;
}
public function setDateModified(?\DateTimeInterface $date_modified): self
{
$this->date_modified = $date_modified;
return $this;
}
public function getDateAccepted(): ?\DateTimeInterface
{
return $this->date_accepted;
}
public function setDateAccepted(?\DateTimeInterface $date_accepted): self
{
$this->date_accepted = $date_accepted;
return $this;
}
public function getManager(): ?User
{
return $this->manager;
}
public function setManager(?User $manager): self
{
$this->manager = $manager;
return $this;
}
public function getClient(): ?User
{
return $this->client;
}
public function setClient(?User $client): self
{
$this->client = $client;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getPreOrder(): ?PreOrder
{
return $this->pre_order;
}
public function setPreOrder(?PreOrder $pre_order): self
{
$this->pre_order = $pre_order;
return $this;
}
public function getOrder(): ?Orders
{
return $this->order;
}
public function setOrder(?Orders $order): self
{
$this->order = $order;
return $this;
}
public function getLoadInvoice(): ?LoadInvoice
{
return $this->load_invoice;
}
public function setLoadInvoice(?LoadInvoice $load_invoice): self
{
$this->load_invoice = $load_invoice;
return $this;
}
}