src/Entity/SqlMigration.php line 12

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\SqlMigrationRepository;
  4.     use App\Traits\DateTrait;
  5.     use Doctrine\ORM\Mapping as ORM;
  6.     /**
  7.      * @ORM\Entity(repositoryClass=SqlMigrationRepository::class)
  8.      */
  9.     class SqlMigration
  10.     {
  11.         use DateTrait;
  12.         /**
  13.          * @ORM\Id
  14.          * @ORM\GeneratedValue
  15.          * @ORM\Column(type="integer")
  16.          */
  17.         private ?int $id NULL;
  18.         /**
  19.          * @ORM\Column(type="string", length=255)
  20.          */
  21.         private ?string $fileName NULL;
  22.         public function getId(): ?int
  23.         {
  24.             return $this->id;
  25.         }
  26.         public function getFileName(): ?string
  27.         {
  28.             return $this->fileName;
  29.         }
  30.         public function setFileName(string $fileName): self
  31.         {
  32.             $this->fileName $fileName;
  33.             return $this;
  34.         }
  35.     }