<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use App\Entity\MafoId\MafoAdvertisers;
use Doctrine\ORM\Mapping as ORM;
use App\Config;
/**
* @ORM\Entity(repositoryClass="App\Repository\OkrControlRepository")
*/
class OkrControl
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MafoId\MafoAdvertisers")
* @ORM\JoinColumn(nullable=false)
*/
private $advertiser;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $status = Config::OPEN_STATUS;
/**
* @ORM\Column(type="string", length=255)
*/
private $addedByEmail;
/**
* @ORM\Column(type="decimal", precision=12, scale=2)
*/
private $revenue;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $revisionComment;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $approvedByEmail;
/**
* @ORM\Column(type="datetime")
*/
private $period;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default"=false})
*/
private $isDeleted;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateApproved;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateEdited;
/**
* @ORM\Column(type="datetime")
*/
private $dateInserted;
/**
* @ORM\Column(type="datetime")
*/
private $dateUpdated;
public function getId(): ?int
{
return $this->id;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): static
{
$this->status = $status;
return $this;
}
public function getAddedByEmail(): ?string
{
return $this->addedByEmail;
}
public function setAddedByEmail(string $addedByEmail): static
{
$this->addedByEmail = $addedByEmail;
return $this;
}
public function getRevenue(): ?string
{
return $this->revenue;
}
public function setRevenue(string $revenue): static
{
$this->revenue = $revenue;
return $this;
}
public function getRevisionComment(): ?string
{
return $this->revisionComment;
}
public function setRevisionComment(?string $revisionComment): static
{
$this->revisionComment = $revisionComment;
return $this;
}
public function getApprovedByEmail(): ?string
{
return $this->approvedByEmail;
}
public function setApprovedByEmail(?string $approvedByEmail): static
{
$this->approvedByEmail = $approvedByEmail;
return $this;
}
public function getPeriod(): ?\DateTimeInterface
{
return $this->period;
}
public function setPeriod(\DateTimeInterface $period): static
{
$this->period = $period;
return $this;
}
public function getIsDeleted(): ?bool
{
return $this->isDeleted;
}
public function setIsDeleted(?bool $isDeleted): static
{
$this->isDeleted = $isDeleted;
return $this;
}
public function getDateApproved(): ?\DateTimeInterface
{
return $this->dateApproved;
}
public function setDateApproved(?\DateTimeInterface $dateApproved): static
{
$this->dateApproved = $dateApproved;
return $this;
}
public function getDateEdited(): ?\DateTimeInterface
{
return $this->dateEdited;
}
public function setDateEdited(?\DateTimeInterface $dateEdited): static
{
$this->dateEdited = $dateEdited;
return $this;
}
public function getDateInserted(): ?\DateTimeInterface
{
return $this->dateInserted;
}
public function setDateInserted(\DateTimeInterface $dateInserted): static
{
$this->dateInserted = $dateInserted;
return $this;
}
public function getDateUpdated(): ?\DateTimeInterface
{
return $this->dateUpdated;
}
public function setDateUpdated(\DateTimeInterface $dateUpdated): static
{
$this->dateUpdated = $dateUpdated;
return $this;
}
public function getAdvertiser(): ?MafoAdvertisers
{
return $this->advertiser;
}
public function setAdvertiser(?MafoAdvertisers $advertiser): static
{
$this->advertiser = $advertiser;
return $this;
}
}