<?php
namespace App\Entity;
use App\Repository\MediaRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MediaRepository::class)
*/
class Media
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $uid;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $title;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $url;
/**
* @ORM\ManyToOne(targetEntity=Campaign::class, inversedBy="media")
*/
private $campaign;
/**
* @ORM\Column(type="string", length=10, nullable=true)
*/
private $status;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $review_by;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $review_at;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $admin_comment;
/**
* @ORM\Column(type="integer", options={"default" : 0})
*/
private $impression = 0;
/**
* @ORM\Column(type="integer", options={"default" : 0})
*/
private $click = 0;
/**
* @ORM\Column(type="decimal", scale=3, options={"default" : 0})
*/
private $ctr = 0;
/**
* @ORM\Column(type="boolean", options={"default" : false})
*/
private $auto_active;
/**
* @ORM\Column(type="string", length=30, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=30, nullable=true)
*/
private $dimension;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $file;
/**
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $hash;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="media")
* @ORM\JoinColumn(nullable=false)
*/
private $created_by;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $updated_by;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updated_at;
public function getId(): ?int
{
return $this->id;
}
public function getUid(): ?string
{
return $this->uid;
}
public function setUid(string $uid): self
{
$this->uid = $uid;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getImpression(): ?int
{
return $this->impression;
}
public function setImpression(int $impression): self
{
$this->impression = $impression;
return $this;
}
public function getClick(): ?int
{
return $this->click;
}
public function setClick(int $click): self
{
$this->click = $click;
return $this;
}
public function getCtr(): ?float
{
return $this->ctr;
}
public function setCtr(float $ctr): self
{
$this->ctr = $ctr;
return $this;
}
public function getAutoActive(): ?bool
{
return $this->auto_active;
}
public function setAutoActive(bool $auto_active): self
{
$this->auto_active = $auto_active;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getDimension(): ?string
{
return $this->dimension;
}
public function setDimension(?string $dimension): self
{
$this->dimension = $dimension;
return $this;
}
public function getFile(): ?string
{
return $this->file;
}
public function setFile(?string $file): self
{
$this->file = $file;
return $this;
}
public function getHash(): ?string
{
return $this->hash;
}
public function setHash(?string $hash): self
{
$this->hash = $hash;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedBy(): ?User
{
return $this->updated_by;
}
public function setUpdatedBy(?User $updated_by): self
{
$this->updated_by = $updated_by;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updated_at;
}
public function setUpdatedAt(?\DateTimeInterface $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getCampaign(): ?Campaign
{
return $this->campaign;
}
public function setCampaign(?Campaign $campaign): self
{
$this->campaign = $campaign;
return $this;
}
public function getAdminComment(): ?string
{
return $this->admin_comment;
}
public function setAdminComment(?string $admin_comment): self
{
$this->admin_comment = $admin_comment;
return $this;
}
public function getReviewBy(): ?int
{
return $this->review_by;
}
public function setReviewBy(int $review_by): self
{
$this->review_by = $review_by;
return $this;
}
public function getReviewAt(): ?\DateTimeInterface
{
return $this->review_at;
}
public function setReviewAt(\DateTimeInterface $review_at): self
{
$this->review_at = $review_at;
return $this;
}
}