// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
-use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
use Org\Mxchange\CoreFramework\Filter\Filterable;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
* @param $className Name of the class
* @return void
*/
- protected function __construct ($className) {
+ protected function __construct (string $className) {
// Call parent constructor
parent::__construct($className);
}
*
* @return void
*/
- protected function initFilterChains () {
+ protected function initFilterChains (): void {
// Pre/post-registration filters
$this->preRegistrationFilter = ObjectFactory::createObjectByConfiguredName('filter_chain_class');
$this->postRegistrationFilter = ObjectFactory::createObjectByConfiguredName('filter_chain_class');
* @param $filterInstance An instance of a filter
* @return void
*/
- public function addPreFilter (Filterable $filterInstance) {
+ public function addPreFilter (Filterable $filterInstance): void {
// Add the pre filter
$this->preRegistrationFilter->addFilter($filterInstance);
}
* @param $filterInstance An instance of a filter
* @return void
*/
- public function addPostFilter (Filterable $filterInstance) {
+ public function addPostFilter (Filterable $filterInstance): void {
// Add the post filter
$this->postRegistrationFilter->addFilter($filterInstance);
}
*
* @return void
*/
- protected function executePreFilters () {
+ protected function executePreFilters (): void {
// Execute all pre filters
$this->preRegistrationFilter->processFilters(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
}
*
* @return void
*/
- protected function executePostFilters () {
+ protected function executePostFilters (): void {
// Execute all post filters
$this->postRegistrationFilter->processFilters(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
}