src/Entity/Status.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StatusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassStatusRepository::class)]
  6. class Status extends BasicEntity
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length100)]
  13.     private ?string $name null;
  14.     #[ORM\OneToMany(mappedBy"status"targetEntityLeakedPassword::class)]
  15.     private $leakedPasswords;
  16.     #[ORM\OneToMany(mappedBy"status"targetEntityExposedIp::class)]
  17.     private $exposedIps;
  18.     #[ORM\OneToMany(mappedBy"status"targetEntityExposedSubDomain::class)]
  19.     private $exposedSubDomains;
  20.     #[ORM\OneToMany(mappedBy"status"targetEntityLeakedIp::class)]
  21.     private $leakedIps;
  22.     #[ORM\OneToMany(mappedBy"status"targetEntityCryptocurrency::class)]
  23.     private $cryptocurrencys;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getName(): ?string
  29.     {
  30.         return $this->name;
  31.     }
  32.     public function setName(string $name): static
  33.     {
  34.         $this->name $name;
  35.         return $this;
  36.     }
  37. }