src/Entity/GestionComerciale/Activite.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GestionComerciale;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Entity\Utilisateur\Utilisateur;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Symfony\Component\Validator\ExecutionContextInterface;
  9. /**
  10.  * Activite
  11.  *
  12.  * @ORM\Table("commerciale__activite")
  13.  * @ORM\Entity(repositoryClass="App\Repository\GestionComerciale\ActiviteRepository")
  14.  */
  15. class Activite
  16. {
  17.     /**
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="activites")
  26.      * @ORM\JoinColumn(nullable=true)
  27.      */
  28.     private $utilisateur;
  29.     /**
  30.      * @ORM\Column(name="url", type="string", length=255, nullable=true)
  31.      */
  32.     private $url;
  33.     /**
  34.      * @ORM\Column(name="timestamp", type="datetime", nullable=true)
  35.      */
  36.     private $timestamp;
  37.     /**
  38.      * @ORM\Column(name="dateDebut", type="datetime", nullable=true)
  39.      */
  40.     private $dateDebut;
  41.     /**
  42.      * @ORM\Column(name="dateFin", type="datetime", nullable=true)
  43.      */
  44.     private $dateFin;
  45.     /**
  46.      * @ORM\Column(name="id_objet", type="integer", nullable=true)
  47.      */
  48.     private $idObjet;
  49.     
  50.     /**
  51.      * @ORM\Column(name="objet", type="string", length=255, nullable=true)
  52.      */
  53.     private $objet;
  54.     
  55.     /**
  56.      * @ORM\Column(name="action", type="string", length=255, nullable=true)
  57.      */
  58.     private $action;
  59.     
  60.     /**
  61.      * @ORM\Column(name="ecriture", type="boolean", nullable=true)
  62.      */
  63.     private $ecriture;  
  64.     public function __construct()
  65.     {
  66.         $this->timestamp = new Datetime();
  67.         $this->dateDebut = new Datetime();
  68.     }
  69.     public function getId(): int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function setTimestamp(?DateTime $timestamp): Activite
  74.     {
  75.         $this->timestamp $timestamp;
  76.         return $this;
  77.     }
  78.     public function getTimestamp(): ?DateTime
  79.     {
  80.         return $this->timestamp;
  81.     }
  82.     public function setURL(?string $url): Activite
  83.     {
  84.         $this->url $url;
  85.         return $this;
  86.     }
  87.     public function getURL(): ?string
  88.     {
  89.         return $this->url;
  90.     }
  91.     public function setUtilisateur(?Utilisateur $utilisateur): Activite
  92.     {
  93.         $this->utilisateur $utilisateur;
  94.         return $this;
  95.     }
  96.     public function getUtilisateur(): ?Utilisateur
  97.     {
  98.         return $this->utilisateur;
  99.     }
  100.     public function setDateDebut(?DateTime $dateDebut): Activite
  101.     {
  102.         $this->dateDebut $dateDebut;
  103.         return $this;
  104.     }
  105.     public function getDateDebut(): ?DateTime
  106.     {
  107.         return $this->dateDebut;
  108.     }
  109.     public function setDateFin(?DateTime $dateFin): Activite
  110.     {
  111.         $this->dateFin $dateFin;
  112.         return $this;
  113.     }
  114.     public function getDateFin(): ?DateTime
  115.     {
  116.         return $this->dateFin;
  117.     }
  118.     public function setIdObjet(?int $idObjet): Activite
  119.     {
  120.         $this->idObjet $idObjet;
  121.         return $this;
  122.     }
  123.     public function getIdObjet(): ?int
  124.     {
  125.         return $this->idObjet;
  126.     }
  127.     public function setObjet(?string $objet): Activite
  128.     {
  129.         $this->objet $objet;
  130.         return $this;
  131.     }
  132.     public function getObjet(): ?string
  133.     {
  134.         return $this->objet;
  135.     }
  136.     public function setAction(?string $action): Activite
  137.     {
  138.         $this->action $action;
  139.         return $this;
  140.     }
  141.     public function getAction(): ?string
  142.     {
  143.         return $this->action;
  144.     }
  145.     public function setEcriture(?bool $ecriture): Activite
  146.     {
  147.         $this->ecriture $ecriture;
  148.         return $this;
  149.     }
  150.     public function getEcriture(): ?bool
  151.     {
  152.         return $this->ecriture;
  153.     }
  154. }