[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
lib
/
pkp
/
lib
/
vendor
/
sokil
/
php-isocodes
/
src
/
Database
/
Subdivisions
/
[
Home
]
File: Subdivision.php
<?php declare(strict_types=1); namespace Sokil\IsoCodes\Database\Subdivisions; use Sokil\IsoCodes\Database\Subdivisions; class Subdivision { /** * @var string */ private $name; /** * @var string */ private $localName; /** * @var string */ private $code; /** * @var string */ private $type; /** * @var string|null */ private $parent; /** * Subdivision constructor. */ public function __construct( string $name, string $code, string $type, ?string $parent = null ) { $this->name = $name; $this->code = $code; $this->type = $type; $this->parent = $parent; } public function getName(): string { return $this->name; } public function getLocalName(): string { if ($this->localName === null) { $this->localName = dgettext( Subdivisions::getISONumber(), $this->name ); } return $this->localName; } public function getCode(): string { return $this->code; } public function getType(): string { return $this->type; } public function getParent(): ?string { return $this->parent; } }