Files
ludikevent_crm/src/Entity/Product.php

126 lines
2.2 KiB
PHP
Raw Normal View History

<?php
namespace App\Entity;
use App\Repository\ProductRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProductRepository::class)]
class Product
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $ref = null;
#[ORM\Column(length: 255)]
private ?string $category = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column]
private ?float $priceDay = null;
#[ORM\Column]
private ?float $priceSup = null;
#[ORM\Column]
private ?float $installation = null;
#[ORM\Column]
private ?float $caution = null;
public function getId(): ?int
{
return $this->id;
}
public function getRef(): ?string
{
return $this->ref;
}
public function setRef(string $ref): static
{
$this->ref = $ref;
return $this;
}
public function getCategory(): ?string
{
return $this->category;
}
public function setCategory(string $category): static
{
$this->category = $category;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getPriceDay(): ?float
{
return $this->priceDay;
}
public function setPriceDay(float $priceDay): static
{
$this->priceDay = $priceDay;
return $this;
}
public function getPriceSup(): ?float
{
return $this->priceSup;
}
public function setPriceSup(float $priceSup): static
{
$this->priceSup = $priceSup;
return $this;
}
public function getInstallation(): ?float
{
return $this->installation;
}
public function setInstallation(float $installation): static
{
$this->installation = $installation;
return $this;
}
public function getCaution(): ?float
{
return $this->caution;
}
public function setCaution(float $caution): static
{
$this->caution = $caution;
return $this;
}
}