mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
82 lines
1.4 KiB
PHP
82 lines
1.4 KiB
PHP
![]() |
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use App\Repository\SellingRepository;
|
||
|
use Doctrine\DBAL\Types\Types;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
||
|
#[ORM\Entity(repositoryClass: SellingRepository::class)]
|
||
|
class Selling
|
||
|
{
|
||
|
#[ORM\Id]
|
||
|
#[ORM\GeneratedValue]
|
||
|
#[ORM\Column]
|
||
|
private ?int $id = null;
|
||
|
|
||
|
#[ORM\Column(length: 255, nullable: true)]
|
||
|
private ?string $note = null;
|
||
|
|
||
|
#[ORM\Column(type: Types::OBJECT)]
|
||
|
private ?object $products = null;
|
||
|
|
||
|
#[ORM\Column]
|
||
|
private ?float $sum = null;
|
||
|
|
||
|
#[ORM\Column(nullable: true)]
|
||
|
private ?float $reduction = null;
|
||
|
|
||
|
public function getId(): ?int
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function getNote(): ?string
|
||
|
{
|
||
|
return $this->note;
|
||
|
}
|
||
|
|
||
|
public function setNote(?string $note): static
|
||
|
{
|
||
|
$this->note = $note;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getProducts(): ?object
|
||
|
{
|
||
|
return $this->products;
|
||
|
}
|
||
|
|
||
|
public function setProducts(object $products): static
|
||
|
{
|
||
|
$this->products = $products;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getSum(): ?float
|
||
|
{
|
||
|
return $this->sum;
|
||
|
}
|
||
|
|
||
|
public function setSum(float $sum): static
|
||
|
{
|
||
|
$this->sum = $sum;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getReduction(): ?float
|
||
|
{
|
||
|
return $this->reduction;
|
||
|
}
|
||
|
|
||
|
public function setReduction(?float $reduction): static
|
||
|
{
|
||
|
$this->reduction = $reduction;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|