src/Entity/Activity.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActivityRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ActivityRepository::class)
  7.  */
  8. class Activity
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $type;
  20.     /**
  21.      * @ORM\Column(type="text")
  22.      */
  23.     private $message;
  24.     /**
  25.      * @ORM\Column(type="datetime")
  26.      */
  27.     private $ceratedAt;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="activities")
  30.      */
  31.     private $currentUser;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Document::class, inversedBy="activities")
  34.      */
  35.     private $document;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=Produit::class, inversedBy="activities")
  38.      */
  39.     private $produit;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=ProduitDeclinationValue::class, inversedBy="activities")
  42.      */
  43.     private $produitDeclination;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Stock::class, inversedBy="activities")
  46.      */
  47.     private $stock;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getType(): ?string
  53.     {
  54.         return $this->type;
  55.     }
  56.     public function setType(?string $type): self
  57.     {
  58.         $this->type $type;
  59.         return $this;
  60.     }
  61.     public function getMessage(): ?string
  62.     {
  63.         return $this->message;
  64.     }
  65.     public function setMessage(string $message): self
  66.     {
  67.         $this->message $message;
  68.         return $this;
  69.     }
  70.     public function getCeratedAt(): ?\DateTimeInterface
  71.     {
  72.         return $this->ceratedAt;
  73.     }
  74.     public function setCeratedAt(\DateTimeInterface $ceratedAt): self
  75.     {
  76.         $this->ceratedAt $ceratedAt;
  77.         return $this;
  78.     }
  79.     public function getCurrentUser(): ?User
  80.     {
  81.         return $this->currentUser;
  82.     }
  83.     public function setCurrentUser(?User $currentUser): self
  84.     {
  85.         $this->currentUser $currentUser;
  86.         return $this;
  87.     }
  88.     public function getDocument(): ?Document
  89.     {
  90.         return $this->document;
  91.     }
  92.     public function setDocument(?Document $document): self
  93.     {
  94.         $this->document $document;
  95.         return $this;
  96.     }
  97.     public function getProduit(): ?Produit
  98.     {
  99.         return $this->produit;
  100.     }
  101.     public function setProduit(?Produit $produit): self
  102.     {
  103.         $this->produit $produit;
  104.         return $this;
  105.     }
  106.     public function getProduitDeclination(): ?ProduitDeclinationValue
  107.     {
  108.         return $this->produitDeclination;
  109.     }
  110.     public function setProduitDeclination(?ProduitDeclinationValue $produitDeclination): self
  111.     {
  112.         $this->produitDeclination $produitDeclination;
  113.         return $this;
  114.     }
  115.     public function getStock(): ?Stock
  116.     {
  117.         return $this->stock;
  118.     }
  119.     public function setStock(?Stock $stock): self
  120.     {
  121.         $this->stock $stock;
  122.         return $this;
  123.     }
  124. }