<?php
declare(strict_types=1);
namespace App\Entity;
use App\Repository\DomainRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* WEB домены
* определять к каким Доменам привязаны Сервисы
*
* @ORM\Entity(repositoryClass=DomainRepository::class)
*/
class Domain
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer", nullable=false)
*/
private ?int $id = null;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private string $name;
/**
* @ORM\ManyToOne(targetEntity=Service::class, inversedBy="domains")
* @ORM\JoinColumn(nullable=false)
*/
private Service $service;
/**
* @ORM\Column(type="boolean")
*/
private bool $isTest;
public function getId(): ?int
{
return $this->id;
}
public function getName(): string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getService(): Service
{
return $this->service;
}
public function setService(Service $service): self
{
$this->service = $service;
return $this;
}
public function setIsTest(bool $isTest): self
{
$this->isTest = $isTest;
return $this;
}
public function isTest(): bool
{
return $this->isTest;
}
}