2022-02-01 20:39:01 +01:00
|
|
|
<?php declare(strict_types=1);
|
2022-01-31 21:07:19 +01:00
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
2022-02-12 19:30:25 +01:00
|
|
|
|
|
|
|
use App\Enums\PanelType;
|
|
|
|
|
|
|
|
|
2022-01-31 21:07:19 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class Domain
|
|
|
|
{
|
|
|
|
|
2022-02-12 19:30:25 +01:00
|
|
|
/**
|
|
|
|
*/
|
2022-02-22 14:06:07 +01:00
|
|
|
public function __construct(private string $name, private String $panel, private int $id = 0)
|
2022-02-12 19:30:25 +01:00
|
|
|
{}
|
|
|
|
|
2022-02-22 14:06:07 +01:00
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
|
|
|
public function getPanel(): string
|
|
|
|
{
|
|
|
|
return $this->panel;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param String $panel
|
|
|
|
*/
|
|
|
|
public function setPanel(string $panel): void
|
|
|
|
{
|
|
|
|
$this->panel = $panel;
|
|
|
|
}
|
|
|
|
|
2022-01-31 21:07:19 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String
|
|
|
|
*/
|
2022-02-12 19:30:25 +01:00
|
|
|
public function getName(): string
|
2022-01-31 21:07:19 +01:00
|
|
|
{
|
2022-02-12 19:30:25 +01:00
|
|
|
return $this->name;
|
2022-01-31 21:07:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2022-02-12 19:30:25 +01:00
|
|
|
* @param String $name
|
2022-01-31 21:07:19 +01:00
|
|
|
*/
|
2022-02-12 19:30:25 +01:00
|
|
|
public function setName(string $name): void
|
2022-01-31 21:07:19 +01:00
|
|
|
{
|
2022-02-12 19:30:25 +01:00
|
|
|
$this->name = $name;
|
2022-01-31 21:07:19 +01:00
|
|
|
}
|
|
|
|
|
2022-02-12 19:30:25 +01:00
|
|
|
|
2022-01-31 21:07:19 +01:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId(): int
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $id
|
|
|
|
*/
|
|
|
|
public function setId(int $id): void
|
|
|
|
{
|
|
|
|
$this->id = $id;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|