src/Entity/Campaign.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CampaignRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CampaignRepository::class)
  7.  */
  8. class Campaign
  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 $title;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $goal;
  24.     /**
  25.      * @ORM\Column(type="string", nullable=true)
  26.      */
  27.     private $details;
  28.     /**
  29.      * @ORM\Column(type="string", nullable=true)
  30.      */
  31.     private $description;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $category_id;
  36.     // *
  37.     //  * @ORM\ManyToOne(targetEntity="App\Entity\Categorie", cascade={"persist"})
  38.      
  39.     // private $category;
  40.     // *
  41.     //  * @ORM\Column(type="string", length=255)
  42.      
  43.     // private $product_id;
  44.     /**
  45.      * @ORM\Column(type="string", nullable=true)
  46.      */
  47.     private $start_date;
  48.     /**
  49.      * @ORM\Column(type="string", nullable=true)
  50.      */
  51.     private $end_date;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $total_votes;
  56.     /**
  57.      * @ORM\Column(type="string", nullable=true)
  58.      */
  59.     private $image;
  60.     /**
  61.      * @ORM\Column(type="string", length=255)
  62.      */
  63.     private $status;
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getTitle(): ?string
  69.     {
  70.         return $this->title;
  71.     }
  72.     public function setTitle(?string $title): self
  73.     {
  74.         $this->title $title;
  75.         return $this;
  76.     }
  77.     public function getGoal(): ?string
  78.     {
  79.         return $this->goal;
  80.     }
  81.     public function setGoal(?string $goal): self
  82.     {
  83.         $this->goal $goal;
  84.         return $this;
  85.     }
  86.     public function getDetails(): ?string
  87.     {
  88.         return $this->details;
  89.     }
  90.     public function setDetails(?string $details): self
  91.     {
  92.         $this->details $details;
  93.         return $this;
  94.     }
  95.     public function getDescription(): ?string
  96.     {
  97.         return $this->description;
  98.     }
  99.     public function setDescription(?string $description): self
  100.     {
  101.         $this->description $description;
  102.         return $this;
  103.     }
  104.     public function getCategoryId(): ?string
  105.     {
  106.         return $this->category_id;
  107.     }
  108.     public function setCategoryId(string $category_id): self
  109.     {
  110.         $this->category_id $category_id;
  111.         return $this;
  112.     }
  113.     // public function getProductId(): ?string
  114.     // {
  115.     //     return $this->product_id;
  116.     // }
  117.     // public function setProductId(string $product_id): self
  118.     // {
  119.     //     $this->product_id = $product_id;
  120.     //     return $this;
  121.     // }
  122.     public function getStartDate(): ?string
  123.     {
  124.         return $this->start_date;
  125.     }
  126.     public function setStartDate(string $start_date): self
  127.     {
  128.         $this->start_date $start_date;
  129.         return $this;
  130.     }
  131.     public function getEndDate(): ?string
  132.     {
  133.         return $this->end_date;
  134.     }
  135.     public function setEndDate(string $end_date): self
  136.     {
  137.         $this->end_date $end_date;
  138.         return $this;
  139.     }
  140.     public function getTotalVotes(): ?string
  141.     {
  142.         return $this->total_votes;
  143.     }
  144.     public function setTotalVotes(?string $total_votes): self
  145.     {
  146.         $this->total_votes $total_votes;
  147.         return $this;
  148.     }
  149.     public function getImage(): ?string
  150.     {
  151.         return $this->image;
  152.     }
  153.     public function setImage(?string $image): self
  154.     {
  155.         $this->image $image;
  156.         return $this;
  157.     }
  158.     public function getStatus(): ?string
  159.     {
  160.         return $this->status;
  161.     }
  162.     public function setStatus(string $status): self
  163.     {
  164.         $this->status $status;
  165.         return $this;
  166.     }
  167.     // public function setCategory(\App\Entity\Categorie $category = null)
  168.     // {
  169.     //     $this->category = $category;
  170.     //     return $this;
  171.     // }
  172.     // public function getCategory()
  173.     // {
  174.     //     return $this->category;
  175.     // }
  176. }