<?php
namespace App\Entity;
use App\Entity\Traits\TimestampableTrait;
use App\Repository\RefDureeOperationTravailRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=RefDureeOperationTravailRepository::class)
* @Gedmo\Loggable
*/
class RefDureeOperationTravail
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Gedmo\Versioned
*/
private $dureeOperation;
/**
* @ORM\Column(type="float")
* @Gedmo\Versioned
*/
private $valeurJour = 0;
use TimestampableTrait;
public function getId(): ?int
{
return $this->id;
}
public function getDureeOperation(): ?string
{
return $this->dureeOperation;
}
public function setDureeOperation(string $dureeOperation): self
{
$this->dureeOperation = $dureeOperation;
return $this;
}
public function __toString()
{
return $this->dureeOperation;
}
public function getValeurJour(): ?float
{
return $this->valeurJour;
}
public function setValeurJour(float $valeurJour): self
{
$this->valeurJour = $valeurJour;
return $this;
}
}