<?php
namespace App\Entity;
use App\Repository\StatusRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StatusRepository::class)]
class Status extends BasicEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100)]
private ?string $name = null;
#[ORM\OneToMany(mappedBy: "status", targetEntity: LeakedPassword::class)]
private $leakedPasswords;
#[ORM\OneToMany(mappedBy: "status", targetEntity: ExposedIp::class)]
private $exposedIps;
#[ORM\OneToMany(mappedBy: "status", targetEntity: ExposedSubDomain::class)]
private $exposedSubDomains;
#[ORM\OneToMany(mappedBy: "status", targetEntity: LeakedIp::class)]
private $leakedIps;
#[ORM\OneToMany(mappedBy: "status", targetEntity: Cryptocurrency::class)]
private $cryptocurrencys;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
}