src/Entity/ManualFlight.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomServiceRepository;
  4. use App\Repository\ExtraRepository;
  5. use App\Repository\ManualFlightRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassManualFlightRepository::class)]
  9. class ManualFlight extends  Product
  10. {
  11.     #[ORM\Column(length255)]
  12.     private ?string $name null;
  13.     #[ORM\Column(nullabletrue)]
  14.     private ?int $sourceId null;
  15.     public function getName(): ?string
  16.     {
  17.         return $this->name;
  18.     }
  19.     public function setName(string $name): static
  20.     {
  21.         $this->name $name;
  22.         return $this;
  23.     }
  24.     public function __toString(): string
  25.     {
  26.         return (string) $this->name;
  27.     }
  28.     public function getClass()  : string {
  29.         return "ManualFlight";
  30.     }
  31.     public function getSourceId(): ?int
  32.     {
  33.         return $this->sourceId;
  34.     }
  35.     public function setSourceId(?int $sourceId): static
  36.     {
  37.         $this->sourceId $sourceId;
  38.         return $this;
  39.     }
  40. }