src/Entity/PackageFeatures.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PackageFeaturesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPackageFeaturesRepository::class)]
  6. class PackageFeatures
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityPackage::class, inversedBy'packageFeatures')]
  13.     private Package $package;
  14.     #[ORM\Column(type'integer')]
  15.     private int $type;
  16.     #[ORM\Column(type'integer'nullabletrue)]
  17.     private ?int $attempt;
  18.     #[ORM\Column(type'dateinterval'nullabletrue)]
  19.     private ?\DateInterval $duration null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getAttempt(): ?int
  25.     {
  26.         return $this->attempt;
  27.     }
  28.     public function setAttempt(?int $attempt): static
  29.     {
  30.         $this->attempt $attempt;
  31.         return $this;
  32.     }
  33.     public function getDuration(): ?\DateInterval
  34.     {
  35.         return $this->duration;
  36.     }
  37.     public function setDuration(?\DateInterval $duration): static
  38.     {
  39.         $this->duration $duration;
  40.         return $this;
  41.     }
  42.     public function getPackage(): ?Package
  43.     {
  44.         return $this->package;
  45.     }
  46.     public function setPackage(?Package $package): static
  47.     {
  48.         $this->package $package;
  49.         return $this;
  50.     }
  51.     public function getType(): ?int
  52.     {
  53.         return $this->type;
  54.     }
  55.     public function setType(int $type): static
  56.     {
  57.         $this->type $type;
  58.         return $this;
  59.     }
  60. }