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
|
|
|
/**
|
|
|
|
*/
|
|
|
|
public function __construct(private string $name, private int $id = 0, private string $content = '')
|
|
|
|
{}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2022-02-12 19:30:25 +01:00
|
|
|
* @return string
|
2022-01-31 21:07:19 +01:00
|
|
|
*/
|
2022-02-12 19:30:25 +01:00
|
|
|
public function getContent(): string
|
2022-01-31 21:07:19 +01:00
|
|
|
{
|
2022-02-12 19:30:25 +01:00
|
|
|
return $this->content;
|
2022-01-31 21:07:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2022-02-12 19:30:25 +01:00
|
|
|
* @param string $content
|
2022-01-31 21:07:19 +01:00
|
|
|
*/
|
2022-02-12 19:30:25 +01:00
|
|
|
public function setContent(string $content): void
|
2022-01-31 21:07:19 +01:00
|
|
|
{
|
2022-02-12 19:30:25 +01:00
|
|
|
$this->content = $content;
|
2022-01-31 21:07:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|