<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\IncomingInvoiceCstmRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: IncomingInvoiceCstmRepository::class)]
#[ApiResource]
class IncomingInvoiceCstm
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\OneToOne(inversedBy: 'incomingInvoiceCstm', cascade: ['persist', 'remove'])]
private ?IncomingInvoice $c = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $storage = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $description = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $what_incoming = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $trading_type = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $supplier = null;
public function getId(): ?int
{
return $this->id;
}
public function getC(): ?IncomingInvoice
{
return $this->c;
}
public function setC(?IncomingInvoice $c): self
{
$this->c = $c;
return $this;
}
public function getStorage(): ?string
{
return $this->storage;
}
public function setStorage(?string $storage): self
{
$this->storage = $storage;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getWhatIncoming(): ?string
{
return $this->what_incoming;
}
public function setWhatIncoming(?string $what_incoming): self
{
$this->what_incoming = $what_incoming;
return $this;
}
public function getTradingType(): ?string
{
return $this->trading_type;
}
public function setTradingType(?string $trading_type): self
{
$this->trading_type = $trading_type;
return $this;
}
public function getSupplier(): ?string
{
return $this->supplier;
}
public function setSupplier(?string $supplier): self
{
$this->supplier = $supplier;
return $this;
}
}