<?php
namespace App\Entity;
use App\Repository\CampaignRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CampaignRepository::class)
*/
class Campaign
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $goal;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $details;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255)
*/
private $category_id;
// *
// * @ORM\ManyToOne(targetEntity="App\Entity\Categorie", cascade={"persist"})
// private $category;
// *
// * @ORM\Column(type="string", length=255)
// private $product_id;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $start_date;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $end_date;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $total_votes;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $image;
/**
* @ORM\Column(type="string", length=255)
*/
private $status;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getGoal(): ?string
{
return $this->goal;
}
public function setGoal(?string $goal): self
{
$this->goal = $goal;
return $this;
}
public function getDetails(): ?string
{
return $this->details;
}
public function setDetails(?string $details): self
{
$this->details = $details;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getCategoryId(): ?string
{
return $this->category_id;
}
public function setCategoryId(string $category_id): self
{
$this->category_id = $category_id;
return $this;
}
// public function getProductId(): ?string
// {
// return $this->product_id;
// }
// public function setProductId(string $product_id): self
// {
// $this->product_id = $product_id;
// return $this;
// }
public function getStartDate(): ?string
{
return $this->start_date;
}
public function setStartDate(string $start_date): self
{
$this->start_date = $start_date;
return $this;
}
public function getEndDate(): ?string
{
return $this->end_date;
}
public function setEndDate(string $end_date): self
{
$this->end_date = $end_date;
return $this;
}
public function getTotalVotes(): ?string
{
return $this->total_votes;
}
public function setTotalVotes(?string $total_votes): self
{
$this->total_votes = $total_votes;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
// public function setCategory(\App\Entity\Categorie $category = null)
// {
// $this->category = $category;
// return $this;
// }
// public function getCategory()
// {
// return $this->category;
// }
}