caisse-bliss/src/Entity/Selling.php

82 lines
1.4 KiB
PHP
Raw Normal View History

2025-02-09 16:05:39 +01:00
<?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;
}
}