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 $createdAt;
  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.     /**
  49.      * @ORM\ManyToOne(targetEntity=Pack::class, inversedBy="activities")
  50.      */
  51.     private $pack;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getType(): ?string
  57.     {
  58.         return $this->type;
  59.     }
  60.     public function setType(?string $type): self
  61.     {
  62.         $this->type $type;
  63.         return $this;
  64.     }
  65.     public function getMessage(): ?string
  66.     {
  67.         return $this->message;
  68.     }
  69.     public function setMessage(string $message): self
  70.     {
  71.         $this->message $message;
  72.         return $this;
  73.     }
  74.     public function getCreatedAt(): ?\DateTimeInterface
  75.     {
  76.         return $this->createdAt;
  77.     }
  78.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  79.     {
  80.         $this->createdAt $createdAt;
  81.         return $this;
  82.     }
  83.     public function getCurrentUser(): ?User
  84.     {
  85.         return $this->currentUser;
  86.     }
  87.     public function setCurrentUser(?User $currentUser): self
  88.     {
  89.         $this->currentUser $currentUser;
  90.         return $this;
  91.     }
  92.     public function getDocument(): ?Document
  93.     {
  94.         return $this->document;
  95.     }
  96.     public function setDocument(?Document $document): self
  97.     {
  98.         $this->document $document;
  99.         return $this;
  100.     }
  101.     public function getProduit(): ?Produit
  102.     {
  103.         return $this->produit;
  104.     }
  105.     public function setProduit(?Produit $produit): self
  106.     {
  107.         $this->produit $produit;
  108.         return $this;
  109.     }
  110.     public function getProduitDeclination(): ?ProduitDeclinationValue
  111.     {
  112.         return $this->produitDeclination;
  113.     }
  114.     public function setProduitDeclination(?ProduitDeclinationValue $produitDeclination): self
  115.     {
  116.         $this->produitDeclination $produitDeclination;
  117.         return $this;
  118.     }
  119.     public function getStock(): ?Stock
  120.     {
  121.         return $this->stock;
  122.     }
  123.     public function setStock(?Stock $stock): self
  124.     {
  125.         $this->stock $stock;
  126.         return $this;
  127.     }
  128.     public function getPack(): ?Pack
  129.     {
  130.         return $this->pack;
  131.     }
  132.     public function setPack(?Pack $pack): self
  133.     {
  134.         $this->pack $pack;
  135.         return $this;
  136.     }
  137. }