<?phpdeclare(strict_types=1);namespace App\Entity\Report;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Table() * * @ORM\Entity(repositoryClass="App\Repository\Report\SubscriptionRenewRepository") */class SubscriptionRenew{ /** * @ORM\Column(type="integer") * * @ORM\Id * * @ORM\GeneratedValue */ private int $id; /** * @ORM\Column(type="integer", options={"default" : 0}) */ private int $numToRenew; /** * @ORM\Column(type="integer", options={"default" : 0}) */ private int $numRenewed; /** * @ORM\Column(type="float", options={"default" : 0.00}) */ private float $amountToCollect; /** * @ORM\Column(type="float", options={"default" : 0.00}) */ private float $amountCollected; /** * @ORM\Column(type="datetime") */ private \DateTime $dateAdd; /** * @ORM\Column(type="datetime") */ private \DateTime $dateUpd; /** * @var SubscriptionRenewSubscriptionLine[]|ArrayCollection * * @ORM\OneToMany(targetEntity="App\Entity\Report\SubscriptionRenewSubscriptionLine", mappedBy="subscriptionRenew") */ private $renewSubscriptionLines; public function __construct(int $numToRenew, float $amountToCollect) { $this->numToRenew = $numToRenew; $this->amountToCollect = $amountToCollect; $this->numRenewed = 0; $this->amountCollected = 0; $this->dateAdd = new \DateTime(); $this->dateUpd = new \DateTime(); } public function getId(): int { return $this->id; } public function getNumToRenew(): int { return $this->numToRenew; } public function getNumRenewed(): int { return $this->numRenewed; } public function getAmountToCollect(): float { return $this->amountToCollect; } public function getAmountCollected(): float { return $this->amountCollected; } public function getDateAdd(): \DateTime { return $this->dateAdd; } public function getDateUpd(): \DateTime { return $this->dateUpd; } public function getRenewSubscriptionLines() { return $this->renewSubscriptionLines; } public function setNumRenewed(int $numRenewed): SubscriptionRenew { $this->numRenewed = $numRenewed; return $this; } public function setAmountCollected(float $amountCollected): SubscriptionRenew { $this->amountCollected = $amountCollected; return $this; } public function setAmountToCollect(float $amountToCollect): SubscriptionRenew { $this->amountToCollect = $amountToCollect; return $this; } public function setDateUpd(\DateTime $dateUpd): SubscriptionRenew { $this->dateUpd = $dateUpd; return $this; }}