<?php
+// Own namespace
+namespace Org\Mxchange\City\Generic;
+
+// Import application-specific stuff
+use Org\Mxchange\City\Helper\CityHelper;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+
/**
* A general city (simulation) system class
*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2015 City Developer Team
+ * @copyright Copyright (c) 2015, 2016 City Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class BaseCitySystem extends BaseFrameworkSystem {
+abstract class BaseCitySystem extends BaseFrameworkSystem {
// Exception codes
const EXCEPTION_UNSUPPORTED_ERROR_HANDLER = 0x900;
const EXCEPTION_BASE64_ENCODING_NOT_MODULO_4 = 0x901;
* @param $className Name of the class
* @return void
*/
- protected function __construct ($className) {
+ protected function __construct (string $className) {
// Call parent constructor
parent::__construct($className);
}
protected final function setCityInstance (CityHelper $cityInstance) {
$this->cityInstance = $cityInstance;
}
-
- /**
- * "Getter" for a printable state name
- *
- * @return $stateName Name of the city's state in a printable format
- */
- public final function getPrintableState () {
- // Default is 'null'
- $stateName = 'null';
-
- // Get the state instance
- $stateInstance = $this->getStateInstance();
-
- // Is it an instance of Stateable?
- if ($stateInstance instanceof Stateable) {
- // Then use that state name
- $stateName = $stateInstance->getStateName();
- } // END - if
-
- // Return result
- return $stateName;
- }
}
-
-// [EOF]
-?>