src/Entity/Invoices.php line 9
<?php
namespace App\Entity;
use App\Repository\InvoicesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: InvoicesRepository::class)]
class Invoices
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'invoice')]
private $user;
#[ORM\Column(name: 'invoice', type: 'string', nullable: false)]
private ?string $invoice;
#[ORM\Column(name: 'invoiceNumber', type: 'integer', nullable: false)]
private ?int $invoiceNumber;
public function getId(): ?int
{
return $this->id;
}
/**
* @return int|null
*/
public function getInvoiceNumber(): ?int
{
return $this->invoiceNumber;
}
/**
* @param int|null $invoiceNumber
*/
public function setInvoiceNumber(?int $invoiceNumber): void
{
$this->invoiceNumber = $invoiceNumber;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user): void
{
$this->user = $user;
}
/**
* @return string|null
*/
public function getInvoice(): ?string
{
return $this->invoice;
}
/**
* @param string|null $invoice
*/
public function setInvoice(?string $invoice): void
{
$this->invoice = $invoice;
}
}