← Back
Editing: Rebate.php
<?php namespace App\Entity; use App\Repository\RebateRepository; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: RebateRepository::class)] class Rebate { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\OneToOne(inversedBy: 'rebate', targetEntity: Service::class, cascade: ['persist', 'remove'])] private ?Service $service = null; #[ORM\Column(type: 'datetime_immutable')] private \DateTimeInterface $createdAt; #[ORM\Column(type: 'integer')] private ?int $factor = null; #[ORM\Column(type: 'text', nullable: true)] private ?string $description = null; #[ORM\Column(type: 'datetime_immutable', nullable: true)] private ?\DateTimeImmutable $mailSendedAt = null; public function __construct() { $this->createdAt = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getService(): ?Service { return $this->service; } public function setService(?Service $service): self { $this->service = $service; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getFactor(): ?int { return $this->factor; } public function setFactor(int $factor): self { $this->factor = $factor; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getMailSendedAt(): ?\DateTimeImmutable { return $this->mailSendedAt; } public function setMailSendedAt(?\DateTimeImmutable $mailSendedAt): self { $this->mailSendedAt = $mailSendedAt; return $this; } }
Save File
Cancel