aboutsummaryrefslogtreecommitdiff
path: root/src/Entities/GenreEntity.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-07-15 21:06:33 +0300
committerValentin Popov <info@valentineus.link>2020-07-15 21:06:33 +0300
commit42008dbe1bb64e901156560d066f47c2208d9d84 (patch)
tree944cfc039716e5db8ef229e6a2d1a2fab0289499 /src/Entities/GenreEntity.php
parent721e01511aca0df7a8fdee421ea8d65a5879684b (diff)
downloadphp-epg-service-42008dbe1bb64e901156560d066f47c2208d9d84.tar.xz
php-epg-service-42008dbe1bb64e901156560d066f47c2208d9d84.zip
Marked “final” entities
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/Entities/GenreEntity.php')
-rw-r--r--src/Entities/GenreEntity.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/GenreEntity.php b/src/Entities/GenreEntity.php
index 78a9ac0..61e11ba 100644
--- a/src/Entities/GenreEntity.php
+++ b/src/Entities/GenreEntity.php
@@ -33,26 +33,26 @@ use function is_string;
* @license http://www.apache.org/licenses/LICENSE-2.0
* @package EPGService\Entities
*/
-class GenreEntity {
+final class GenreEntity {
/**
* @var int
*/
- protected int $id;
+ private int $id;
/**
* @var string
*/
- protected string $lang;
+ private string $lang;
/**
* @var string
*/
- protected string $name;
+ private string $name;
/**
* @var string
*/
- protected string $version;
+ private string $version;
/**
* @param int $id
@@ -60,7 +60,7 @@ class GenreEntity {
* @param string $name
* @param string $version
*/
- protected function __construct(int $id, string $lang, string $name, string $version) {
+ private function __construct(int $id, string $lang, string $name, string $version) {
$this->id = $id;
$this->lang = $lang;
$this->name = $name;