]> git.mxchange.org Git - city.git/blobdiff - application/city/classes/filter/class_BaseCityFilter.php
Continued:
[city.git] / application / city / classes / filter / class_BaseCityFilter.php
index 8f369565a333ce1765cf2df7ffd57879eb948e88..6972b7ffaa7a3f89612ab4585ea56ddabe718616 100644 (file)
@@ -1,10 +1,18 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Filter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Filter\BaseFilter;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A generic filter for hub project
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2015, 2016 City Developer Team
+ * @copyright  Copyright (c) 2015 - 2023 City Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -21,7 +29,7 @@
  * 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 BaseCityFilter extends BaseFilter {
+abstract class BaseCityFilter extends BaseFilter {
        /**
         * Array with all data XML nodes (which hold the actual data) and their values
         */
@@ -33,7 +41,7 @@ class BaseCityFilter extends BaseFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
@@ -55,7 +63,7 @@ class BaseCityFilter extends BaseFilter {
         * @return      void
         * @todo        Exceptions from renderXmlContent() are currently unhandled
         */
-       protected function genericProcessMessage ($messageType, $messageContent, Receivable $packageInstance) {
+       protected function genericProcessMessage (string $messageType, string $messageContent, Receivable $packageInstance) {
                // Get a template instance from the factory
                $templateInstance = XmlTemplateEngineFactory::createXmlTemplateEngineInstance('city_' . $messageType . '_template_class');
 
@@ -85,14 +93,14 @@ class BaseCityFilter extends BaseFilter {
 
                                // Skip this part, don't write NULLs to the array
                                continue;
-                       } // END - if
+                       }
 
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(str_replace('_', '-', strtoupper($messageType)) . '-TAG: key=' . $key . ',value=' . $value);
 
                        // Set it now
                        $this->dataXmlNodes[$key] = $value;
-               } // END - foreach
+               }
 
                // Construct an array for pushing it on next stack
                $messageArray = array(