src/Flexy/ShopBundle/Entity/Accounting/FinancialPeriod.php line 12
<?phpnamespace App\Flexy\ShopBundle\Entity\Accounting;use ApiPlatform\Metadata\ApiResource;use App\Repository\Flexy\ShopBundle\Entity\Accounting\FinancialPeriodRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: FinancialPeriodRepository::class)]#[ApiResource]class FinancialPeriod{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $startAt = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $endAt = null;#[ORM\ManyToOne(inversedBy: 'financialPeriods')]#[ORM\JoinColumn(nullable: false)]private ?FinancialYear $financialYear = null;public function getId(): ?int{return $this->id;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function getStartAt(): ?\DateTimeInterface{return $this->startAt;}public function setStartAt(\DateTimeInterface $startAt): self{$this->startAt = $startAt;return $this;}public function getEndAt(): ?\DateTimeInterface{return $this->endAt;}public function setEndAt(\DateTimeInterface $endAt): self{$this->endAt = $endAt;return $this;}public function getFinancialYear(): ?FinancialYear{return $this->financialYear;}public function setFinancialYear(?FinancialYear $financialYear): self{$this->financialYear = $financialYear;return $this;}}