diff options
author | Valentin Popov <info@valentineus.link> | 2020-07-15 21:06:33 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-07-15 21:06:33 +0300 |
commit | 42008dbe1bb64e901156560d066f47c2208d9d84 (patch) | |
tree | 944cfc039716e5db8ef229e6a2d1a2fab0289499 /src/Entities/CategoryEntity.php | |
parent | 721e01511aca0df7a8fdee421ea8d65a5879684b (diff) | |
download | php-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/CategoryEntity.php')
-rw-r--r-- | src/Entities/CategoryEntity.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/CategoryEntity.php b/src/Entities/CategoryEntity.php index ab1f431..af44434 100644 --- a/src/Entities/CategoryEntity.php +++ b/src/Entities/CategoryEntity.php @@ -33,26 +33,26 @@ use function is_string; * @license http://www.apache.org/licenses/LICENSE-2.0 * @package EPGService\Entities */ -class CategoryEntity { +final class CategoryEntity { /** * @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 CategoryEntity { * @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; |