From d0ec14325b19577dc6b7228c8343dd2e83804f59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 3 Jan 2018 23:14:35 +0100 Subject: [PATCH] Continued: - made all base classes abstract like in 'core' framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- application/hub/class_ApplicationHelper.php | 2 +- .../hub/classes/apt-proxy/class_BaseNodeAptProxy.php | 5 +++-- application/hub/classes/blocks/class_BaseBlock.php | 8 +++----- application/hub/classes/chat/class_BaseNodeChat.php | 5 +++-- application/hub/classes/class_BaseHubSystem.php | 2 +- .../hub/classes/communicator/class_BaseCommunicator.php | 5 +++-- .../decorator/class_NetworkPackageCompressorDecorator.php | 6 ++---- .../hub/classes/container/class_BaseHubContainer.php | 2 +- application/hub/classes/crawler/class_BaseNodeCrawler.php | 8 +++----- .../hub/classes/cruncher/class_BaseHubCruncher.php | 3 ++- .../database/frontend/class_BaseHubDatabaseWrapper.php | 2 +- application/hub/classes/decoder/class_BaseDecoder.php | 4 ++-- application/hub/classes/dht/class_BaseDht.php | 2 +- .../hub/classes/discovery/class_BaseNodeDiscovery.php | 2 +- .../discovery/recipient/class_BaseRecipientDiscovery.php | 2 +- .../recipient/package/class_PackageRecipientDiscovery.php | 2 +- .../recipient/socket/class_PackageSocketDiscovery.php | 2 +- .../hub/classes/filter/class_BaseAptProxyFilter.php | 6 ++---- application/hub/classes/filter/class_BaseChatFilter.php | 6 ++---- .../hub/classes/filter/class_BaseCrawlerFilter.php | 6 ++---- .../hub/classes/filter/class_BaseCruncherFilter.php | 6 ++---- application/hub/classes/filter/class_BaseHubFilter.php | 6 ++---- application/hub/classes/filter/class_BaseMinerFilter.php | 6 ++---- application/hub/classes/filter/class_BaseNodeFilter.php | 6 ++---- application/hub/classes/handler/class_BaseHubHandler.php | 2 +- .../data/answer-status/class_BaseAnserStatusHandler.php | 4 +--- .../data/message-types/class_BaseMessageHandler.php | 2 +- .../classes/handler/raw_data/class_BaseRawDataHandler.php | 2 +- .../hub/classes/helper/class_BaseHubSystemHelper.php | 3 ++- .../helper/connection/class_BaseConnectionHelper.php | 2 +- .../connection/ipv4/class_BaseIpV4ConnectionHelper.php | 2 +- .../classes/helper/messages/class_BaseMessageHelper.php | 2 +- .../helper/node/answer/class_BaseHubAnswerHelper.php | 6 ++---- .../hub/classes/helper/node/class_BaseNodeHelper.php | 2 +- .../helper/work_units/class_BaseWorkUnitHelper.php | 4 +--- application/hub/classes/info/class_BaseInfo.php | 2 +- application/hub/classes/listener/class_BaseListener.php | 2 +- .../hub/classes/listener/class_BaseListenerDecorator.php | 2 +- application/hub/classes/miner/class_BaseHubMiner.php | 6 ++---- application/hub/classes/nodes/class_BaseHubNode.php | 4 ++-- .../classes/package/assembler/class_PackageAssembler.php | 2 +- application/hub/classes/pools/class_BasePool.php | 2 +- application/hub/classes/producer/class_BaseProducer.php | 4 +--- .../classes/producer/cruncher/class_BaseKeyProducer.php | 4 +--- .../classes/producer/cruncher/class_BaseUnitProducer.php | 4 +--- .../classes/producer/miner/class_BaseBlockProducer.php | 4 +--- application/hub/classes/recipient/class_BaseRecipient.php | 4 ++-- .../classes/recipient/direct/class_DirectRecipient.php | 2 +- .../hub/classes/recipient/self/class_SelfRecipient.php | 2 +- .../hub/classes/recipient/upper/class_UpperRecipient.php | 2 +- .../resolver/protocol/class_BaseProtocolResolver.php | 2 +- .../classes/resolver/state/class_BaseStateResolver.php | 2 +- application/hub/classes/scanner/class_BaseScanner.php | 8 +++----- application/hub/classes/source/class_BaseSource.php | 8 +++----- application/hub/classes/source/class_BaseUrlSource.php | 6 ++---- .../states/communicator/class_BaseCommunicatorState.php | 6 ++---- .../hub/classes/states/crawler/class_BaseCrawlerState.php | 6 ++---- .../classes/states/cruncher/class_BaseCruncherState.php | 6 ++---- application/hub/classes/states/dht/class_BaseDhtState.php | 6 ++---- .../hub/classes/states/miner/class_BaseMinerState.php | 6 ++---- .../hub/classes/states/node/class_BaseNodeState.php | 6 ++---- .../hub/classes/states/peer/class_BasePeerState.php | 6 ++---- .../connection/class_ConnectionStatisticsHelper.php | 2 +- application/hub/classes/tags/class_BaseTag.php | 8 +++----- .../hub/classes/tasks/crawler/class_BaseUrlSourceTask.php | 6 ++---- .../template/answer/class_BaseXmlAnswerTemplateEngine.php | 6 ++---- .../hub/classes/template/class_BaseXmlTemplateEngine.php | 3 ++- application/hub/config-local.php-dist | 3 --- .../dht/class_DhtBootstrapNotAcceptedException.php | 5 ++--- .../class_NoRequestNodeListAttemptedException.php | 5 ++--- 70 files changed, 113 insertions(+), 174 deletions(-) diff --git a/application/hub/class_ApplicationHelper.php b/application/hub/class_ApplicationHelper.php index e61d84e5a..e31e1a08d 100644 --- a/application/hub/class_ApplicationHelper.php +++ b/application/hub/class_ApplicationHelper.php @@ -2,7 +2,7 @@ // Must be this namespace, else the launcher cannot find the class. namespace Org\Mxchange\CoreFramework\Helper\Application; -// Import hub-specific sutff +// Import application-specific sutff use Org\Shipsimu\Hub\Tools\HubTools; // Import framework stuff diff --git a/application/hub/classes/apt-proxy/class_BaseNodeAptProxy.php b/application/hub/classes/apt-proxy/class_BaseNodeAptProxy.php index 8b883b035..d1827fc39 100644 --- a/application/hub/classes/apt-proxy/class_BaseNodeAptProxy.php +++ b/application/hub/classes/apt-proxy/class_BaseNodeAptProxy.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\AptProxy; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseNodeAptProxy extends BaseHubSystem { +abstract class BaseNodeAptProxy extends BaseHubSystem { /** * Whether this apt-proxy is active */ @@ -62,4 +62,5 @@ class BaseNodeAptProxy extends BaseHubSystem { public final function isActive () { return $this->isActive; } + } diff --git a/application/hub/classes/blocks/class_BaseBlock.php b/application/hub/classes/blocks/class_BaseBlock.php index 2e8b9eec4..1bfe5dc6b 100644 --- a/application/hub/classes/blocks/class_BaseBlock.php +++ b/application/hub/classes/blocks/class_BaseBlock.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Block; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseBlock extends BaseHubSystem { +abstract class BaseBlock extends BaseHubSystem { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseBlock extends BaseHubSystem { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/chat/class_BaseNodeChat.php b/application/hub/classes/chat/class_BaseNodeChat.php index 41afff33a..09c68ef06 100644 --- a/application/hub/classes/chat/class_BaseNodeChat.php +++ b/application/hub/classes/chat/class_BaseNodeChat.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Chat; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseNodeChat extends BaseHubSystem { +abstract class BaseNodeChat extends BaseHubSystem { /** * Whether this Chatter is active */ @@ -62,4 +62,5 @@ class BaseNodeChat extends BaseHubSystem { public final function isActive () { return $this->isActive; } + } diff --git a/application/hub/classes/class_BaseHubSystem.php b/application/hub/classes/class_BaseHubSystem.php index 7dafb43ca..2129629d1 100644 --- a/application/hub/classes/class_BaseHubSystem.php +++ b/application/hub/classes/class_BaseHubSystem.php @@ -41,7 +41,7 @@ use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubSystem extends BaseFrameworkSystem implements HubInterface { +abstract class BaseHubSystem extends BaseFrameworkSystem implements HubInterface { // Exception codes const EXCEPTION_CHUNK_ALREADY_ASSEMBLED = 0x900; const EXCEPTION_ANNOUNCEMENT_NOT_ACCEPTED = 0x901; diff --git a/application/hub/classes/communicator/class_BaseCommunicator.php b/application/hub/classes/communicator/class_BaseCommunicator.php index 2b634beda..7fc14d84a 100644 --- a/application/hub/classes/communicator/class_BaseCommunicator.php +++ b/application/hub/classes/communicator/class_BaseCommunicator.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Communicator; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework stuff @@ -30,7 +30,7 @@ use Org\Mxchange\CoreFramework\State\Stateable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseCommunicator extends BaseHubSystem { +abstract class BaseCommunicator extends BaseHubSystem { /** * Protected constructor * @@ -66,4 +66,5 @@ class BaseCommunicator extends BaseHubSystem { // This communicator is now fully initialized so change the state $stateInstance->communicatorHasInitialized(); } + } diff --git a/application/hub/classes/compressor/decorator/class_NetworkPackageCompressorDecorator.php b/application/hub/classes/compressor/decorator/class_NetworkPackageCompressorDecorator.php index 1d621750a..04df1fb1f 100644 --- a/application/hub/classes/compressor/decorator/class_NetworkPackageCompressorDecorator.php +++ b/application/hub/classes/compressor/decorator/class_NetworkPackageCompressorDecorator.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Compressor\Package; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework-specific stuff @@ -92,7 +92,5 @@ class NetworkPackageCompressorDecorator extends BaseHubSystem implements Compres // Call the inner compressor class return $this->getCompressorInstance()->getCompressorExtension(); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/container/class_BaseHubContainer.php b/application/hub/classes/container/class_BaseHubContainer.php index afb7321b9..7a2073fb5 100644 --- a/application/hub/classes/container/class_BaseHubContainer.php +++ b/application/hub/classes/container/class_BaseHubContainer.php @@ -36,7 +36,7 @@ use Org\Mxchange\CoreFramework\Container\BaseContainer; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubContainer extends BaseContainer implements HubInterface { +abstract class BaseHubContainer extends BaseContainer implements HubInterface { /** * Listener instance */ diff --git a/application/hub/classes/crawler/class_BaseNodeCrawler.php b/application/hub/classes/crawler/class_BaseNodeCrawler.php index 59fd0619c..57ca8fa3d 100644 --- a/application/hub/classes/crawler/class_BaseNodeCrawler.php +++ b/application/hub/classes/crawler/class_BaseNodeCrawler.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Crawler; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework stuff @@ -31,7 +31,7 @@ use Org\Mxchange\CoreFramework\State\Stateable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseNodeCrawler extends BaseHubSystem { +abstract class BaseNodeCrawler extends BaseHubSystem { /** * Whether this Crawler is active */ @@ -94,7 +94,5 @@ class BaseNodeCrawler extends BaseHubSystem { public final function isActive () { return $this->isActive; } -} -// [EOF] -?> +} diff --git a/application/hub/classes/cruncher/class_BaseHubCruncher.php b/application/hub/classes/cruncher/class_BaseHubCruncher.php index e320039a2..3afa60516 100644 --- a/application/hub/classes/cruncher/class_BaseHubCruncher.php +++ b/application/hub/classes/cruncher/class_BaseHubCruncher.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Cruncher; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework stuff @@ -218,4 +218,5 @@ abstract class BaseHubCruncher extends BaseHubSystem implements Updateable { $this->partialStub('Unfinished!'); return; } + } diff --git a/application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php b/application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php index a4b12a7f7..dd4997fd0 100644 --- a/application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php +++ b/application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php @@ -35,7 +35,7 @@ use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubDatabaseWrapper extends BaseDatabaseWrapper implements HubInterface { +abstract class BaseHubDatabaseWrapper extends BaseDatabaseWrapper implements HubInterface { /** * Listener instance */ diff --git a/application/hub/classes/decoder/class_BaseDecoder.php b/application/hub/classes/decoder/class_BaseDecoder.php index f6d801b35..696facfac 100644 --- a/application/hub/classes/decoder/class_BaseDecoder.php +++ b/application/hub/classes/decoder/class_BaseDecoder.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Decoder; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseDecoder extends BaseHubSystem { +abstract class BaseDecoder extends BaseHubSystem { /** * Protected constructor * diff --git a/application/hub/classes/dht/class_BaseDht.php b/application/hub/classes/dht/class_BaseDht.php index 99bfe8de8..e6b946192 100644 --- a/application/hub/classes/dht/class_BaseDht.php +++ b/application/hub/classes/dht/class_BaseDht.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Dht; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Factory\State\Dht\DhtStateFactory; use Org\Shipsimu\Hub\Dht\Distributable; use Org\Shipsimu\Hub\Generic\BaseHubSystem; diff --git a/application/hub/classes/discovery/class_BaseNodeDiscovery.php b/application/hub/classes/discovery/class_BaseNodeDiscovery.php index 871f724f7..e874610c7 100644 --- a/application/hub/classes/discovery/class_BaseNodeDiscovery.php +++ b/application/hub/classes/discovery/class_BaseNodeDiscovery.php @@ -31,7 +31,7 @@ use Org\Mxchange\CoreFramework\Request\Requestable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseNodeDiscovery extends BaseDiscovery implements Discoverable { +abstract class BaseNodeDiscovery extends BaseDiscovery implements Discoverable { /** * Protected constructor * diff --git a/application/hub/classes/discovery/recipient/class_BaseRecipientDiscovery.php b/application/hub/classes/discovery/recipient/class_BaseRecipientDiscovery.php index b58ae2ef5..024630b89 100644 --- a/application/hub/classes/discovery/recipient/class_BaseRecipientDiscovery.php +++ b/application/hub/classes/discovery/recipient/class_BaseRecipientDiscovery.php @@ -29,7 +29,7 @@ use Org\Shipsimu\Hub\Factory\Lists\Recipient\RecipientListFactory; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseRecipientDiscovery extends BaseNodeDiscovery implements DiscoverableRecipient { +abstract class BaseRecipientDiscovery extends BaseNodeDiscovery implements DiscoverableRecipient { /** * Protected constructor * diff --git a/application/hub/classes/discovery/recipient/package/class_PackageRecipientDiscovery.php b/application/hub/classes/discovery/recipient/package/class_PackageRecipientDiscovery.php index 88fa6a0f7..0d4d2f662 100644 --- a/application/hub/classes/discovery/recipient/package/class_PackageRecipientDiscovery.php +++ b/application/hub/classes/discovery/recipient/package/class_PackageRecipientDiscovery.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Discovery\Network\Recipient; -// Import hub-specific sutff +// Import application-specific sutff use Org\Shipsimu\Hub\Discovery\Recipient\BaseRecipientDiscovery; use Org\Shipsimu\Hub\Discovery\Recipient\Node\DiscoverableNodeRecipient; use Org\Shipsimu\Hub\Factory\Handler\Protocol\ProtocolHandlerFactory; diff --git a/application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php b/application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php index cdbcb42db..9d1bf5499 100644 --- a/application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php +++ b/application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Discovery\Socket; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Container\Socket\StorableSocket; use Org\Shipsimu\Hub\Discovery\Recipient\BaseRecipientDiscovery; use Org\Shipsimu\Hub\Discovery\Protocol\ProtocolDiscovery; diff --git a/application/hub/classes/filter/class_BaseAptProxyFilter.php b/application/hub/classes/filter/class_BaseAptProxyFilter.php index 070666836..8469fc144 100644 --- a/application/hub/classes/filter/class_BaseAptProxyFilter.php +++ b/application/hub/classes/filter/class_BaseAptProxyFilter.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Filter\BaseHubFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseAptProxyFilter extends BaseHubFilter { +abstract class BaseAptProxyFilter extends BaseHubFilter { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseAptProxyFilter extends BaseHubFilter { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/filter/class_BaseChatFilter.php b/application/hub/classes/filter/class_BaseChatFilter.php index 42c02c391..0082bbd41 100644 --- a/application/hub/classes/filter/class_BaseChatFilter.php +++ b/application/hub/classes/filter/class_BaseChatFilter.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Filter\BaseHubFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseChatFilter extends BaseHubFilter { +abstract class BaseChatFilter extends BaseHubFilter { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseChatFilter extends BaseHubFilter { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/filter/class_BaseCrawlerFilter.php b/application/hub/classes/filter/class_BaseCrawlerFilter.php index 5beb9b033..f824ec1c9 100644 --- a/application/hub/classes/filter/class_BaseCrawlerFilter.php +++ b/application/hub/classes/filter/class_BaseCrawlerFilter.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Filter\BaseHubFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseCrawlerFilter extends BaseHubFilter { +abstract class BaseCrawlerFilter extends BaseHubFilter { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseCrawlerFilter extends BaseHubFilter { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/filter/class_BaseCruncherFilter.php b/application/hub/classes/filter/class_BaseCruncherFilter.php index 263485c1f..ca2dc7b40 100644 --- a/application/hub/classes/filter/class_BaseCruncherFilter.php +++ b/application/hub/classes/filter/class_BaseCruncherFilter.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Filter\BaseHubFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseCruncherFilter extends BaseHubFilter { +abstract class BaseCruncherFilter extends BaseHubFilter { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseCruncherFilter extends BaseHubFilter { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/filter/class_BaseHubFilter.php b/application/hub/classes/filter/class_BaseHubFilter.php index fe0f9aafa..922bcca3c 100644 --- a/application/hub/classes/filter/class_BaseHubFilter.php +++ b/application/hub/classes/filter/class_BaseHubFilter.php @@ -32,7 +32,7 @@ use Org\Mxchange\CoreFramework\Filter\BaseFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubFilter extends BaseFilter { +abstract class BaseHubFilter extends BaseFilter { /** * Array with all data XML nodes (which hold the actual data) and their values */ @@ -131,7 +131,5 @@ class BaseHubFilter extends BaseFilter { // Push the processed message back on stack $packageInstance->getStackInstance()->pushNamed(NetworkPackage::STACKER_NAME_PROCESSED_MESSAGE, $messageArray); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/filter/class_BaseMinerFilter.php b/application/hub/classes/filter/class_BaseMinerFilter.php index 1e2c7833a..54b6582dc 100644 --- a/application/hub/classes/filter/class_BaseMinerFilter.php +++ b/application/hub/classes/filter/class_BaseMinerFilter.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Filter\BaseHubFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseMinerFilter extends BaseHubFilter { +abstract class BaseMinerFilter extends BaseHubFilter { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseMinerFilter extends BaseHubFilter { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/filter/class_BaseNodeFilter.php b/application/hub/classes/filter/class_BaseNodeFilter.php index 911baa688..6cdd897a8 100644 --- a/application/hub/classes/filter/class_BaseNodeFilter.php +++ b/application/hub/classes/filter/class_BaseNodeFilter.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Filter\BaseHubFilter; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseNodeFilter extends BaseHubFilter { +abstract class BaseNodeFilter extends BaseHubFilter { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseNodeFilter extends BaseHubFilter { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/handler/class_BaseHubHandler.php b/application/hub/classes/handler/class_BaseHubHandler.php index 97d65515b..763aaa208 100644 --- a/application/hub/classes/handler/class_BaseHubHandler.php +++ b/application/hub/classes/handler/class_BaseHubHandler.php @@ -37,7 +37,7 @@ use Org\Mxchange\CoreFramework\Handler\Handleable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubHandler extends BaseHandler implements Handleable, HubInterface { +abstract class BaseHubHandler extends BaseHandler implements Handleable, HubInterface { /** * Listener instance */ diff --git a/application/hub/classes/handler/data/answer-status/class_BaseAnserStatusHandler.php b/application/hub/classes/handler/data/answer-status/class_BaseAnserStatusHandler.php index 540bb1c45..a7932c18a 100644 --- a/application/hub/classes/handler/data/answer-status/class_BaseAnserStatusHandler.php +++ b/application/hub/classes/handler/data/answer-status/class_BaseAnserStatusHandler.php @@ -43,7 +43,5 @@ abstract class BaseAnserStatusHandler extends BaseDataHandler { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/handler/data/message-types/class_BaseMessageHandler.php b/application/hub/classes/handler/data/message-types/class_BaseMessageHandler.php index 5a3426331..04c7cdf41 100644 --- a/application/hub/classes/handler/data/message-types/class_BaseMessageHandler.php +++ b/application/hub/classes/handler/data/message-types/class_BaseMessageHandler.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Handler\Message; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory; use Org\Shipsimu\Hub\Generic\BaseHubSystem; use Org\Shipsimu\Hub\Network\Receive\Receivable; diff --git a/application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php b/application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php index 5bfd9e090..eb7980ce0 100644 --- a/application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php +++ b/application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php @@ -35,7 +35,7 @@ use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseRawDataHandler extends BaseHubHandler implements HandleableRawData { +abstract class BaseRawDataHandler extends BaseHubHandler implements HandleableRawData { /** * Error code from socket */ diff --git a/application/hub/classes/helper/class_BaseHubSystemHelper.php b/application/hub/classes/helper/class_BaseHubSystemHelper.php index f18be2ab4..de1bcecb0 100644 --- a/application/hub/classes/helper/class_BaseHubSystemHelper.php +++ b/application/hub/classes/helper/class_BaseHubSystemHelper.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Helper; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -96,4 +96,5 @@ class BaseHubSystemHelper extends BaseHubSystem implements HubHelper { die(__METHOD__ . ':' . print_r($this, TRUE)); // Return it } + } diff --git a/application/hub/classes/helper/connection/class_BaseConnectionHelper.php b/application/hub/classes/helper/connection/class_BaseConnectionHelper.php index 23faea7a5..ec8ea7e9f 100644 --- a/application/hub/classes/helper/connection/class_BaseConnectionHelper.php +++ b/application/hub/classes/helper/connection/class_BaseConnectionHelper.php @@ -40,7 +40,7 @@ use Org\Mxchange\CoreFramework\Visitor\Visitor; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Registerable { +abstract class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Registerable { // Exception codes const EXCEPTION_UNSUPPORTED_ERROR_HANDLER = 0x9100; diff --git a/application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php b/application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php index 37cf5057d..479654a66 100644 --- a/application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php +++ b/application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php @@ -30,7 +30,7 @@ use Org\Shipsimu\Hub\Locator\Node\LocateableNode; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseIpV4ConnectionHelper extends BaseConnectionHelper { +abstract class BaseIpV4ConnectionHelper extends BaseConnectionHelper { /** * Protected constructor * diff --git a/application/hub/classes/helper/messages/class_BaseMessageHelper.php b/application/hub/classes/helper/messages/class_BaseMessageHelper.php index 6fc29f74d..59fde41dc 100644 --- a/application/hub/classes/helper/messages/class_BaseMessageHelper.php +++ b/application/hub/classes/helper/messages/class_BaseMessageHelper.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseMessageHelper extends BaseHubSystem { +abstract class BaseMessageHelper extends BaseHubSystem { /** * Protected constructor * diff --git a/application/hub/classes/helper/node/answer/class_BaseHubAnswerHelper.php b/application/hub/classes/helper/node/answer/class_BaseHubAnswerHelper.php index 7eae6be6e..ab07448bd 100644 --- a/application/hub/classes/helper/node/answer/class_BaseHubAnswerHelper.php +++ b/application/hub/classes/helper/node/answer/class_BaseHubAnswerHelper.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubAnswerHelper extends BaseNodeHelper { +abstract class BaseHubAnswerHelper extends BaseNodeHelper { /** * Message data array */ @@ -61,7 +61,5 @@ class BaseHubAnswerHelper extends BaseNodeHelper { public final function getMessageData () { return $this->messageData; } -} -// [EOF] -?> +} diff --git a/application/hub/classes/helper/node/class_BaseNodeHelper.php b/application/hub/classes/helper/node/class_BaseNodeHelper.php index faa91d3e4..3706ec807 100644 --- a/application/hub/classes/helper/node/class_BaseNodeHelper.php +++ b/application/hub/classes/helper/node/class_BaseNodeHelper.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Helper\Node; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; use Org\Shipsimu\Hub\Helper\BaseHubSystemHelper; diff --git a/application/hub/classes/helper/work_units/class_BaseWorkUnitHelper.php b/application/hub/classes/helper/work_units/class_BaseWorkUnitHelper.php index d09e8466e..d434455e0 100644 --- a/application/hub/classes/helper/work_units/class_BaseWorkUnitHelper.php +++ b/application/hub/classes/helper/work_units/class_BaseWorkUnitHelper.php @@ -48,7 +48,5 @@ abstract class BaseWorkUnitHelper extends BaseHubSystem { * @return void */ abstract protected function initializeUnitHelper (); -} -// [EOF] -?> +} diff --git a/application/hub/classes/info/class_BaseInfo.php b/application/hub/classes/info/class_BaseInfo.php index 838065639..fd0d59178 100644 --- a/application/hub/classes/info/class_BaseInfo.php +++ b/application/hub/classes/info/class_BaseInfo.php @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseInfo extends BaseHubSystem { +abstract class BaseInfo extends BaseHubSystem { /** * Protected constructor * diff --git a/application/hub/classes/listener/class_BaseListener.php b/application/hub/classes/listener/class_BaseListener.php index 45cfc471e..23c282a45 100644 --- a/application/hub/classes/listener/class_BaseListener.php +++ b/application/hub/classes/listener/class_BaseListener.php @@ -48,7 +48,7 @@ use \LogicException; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseListener extends BaseHubSystem implements Visitable { +abstract class BaseListener extends BaseHubSystem implements Visitable { // Exception code constants const EXCEPTION_SOCKET_ALREADY_REGISTERED = 0xa01; const EXCEPTION_SOCKET_CREATION_FAILED = 0xa02; diff --git a/application/hub/classes/listener/class_BaseListenerDecorator.php b/application/hub/classes/listener/class_BaseListenerDecorator.php index 957c88233..172b2baae 100644 --- a/application/hub/classes/listener/class_BaseListenerDecorator.php +++ b/application/hub/classes/listener/class_BaseListenerDecorator.php @@ -41,7 +41,7 @@ use \LogicException; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseListenerDecorator extends BaseDecorator implements Visitable { +abstract class BaseListenerDecorator extends BaseDecorator implements Visitable { /** * Listener type */ diff --git a/application/hub/classes/miner/class_BaseHubMiner.php b/application/hub/classes/miner/class_BaseHubMiner.php index f92b8b3d6..32cacec42 100644 --- a/application/hub/classes/miner/class_BaseHubMiner.php +++ b/application/hub/classes/miner/class_BaseHubMiner.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Miner; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework stuff @@ -249,7 +249,5 @@ abstract class BaseHubMiner extends BaseHubSystem implements Updateable { MinerStateFactory::createMinerStateInstanceByName('booting'); } // END - if } -} -// [EOF] -?> +} diff --git a/application/hub/classes/nodes/class_BaseHubNode.php b/application/hub/classes/nodes/class_BaseHubNode.php index d778e08f2..7213342cd 100644 --- a/application/hub/classes/nodes/class_BaseHubNode.php +++ b/application/hub/classes/nodes/class_BaseHubNode.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Node; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper; use Org\Shipsimu\Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper; use Org\Shipsimu\Hub\Factory\Registry\Object\ObjectTypeRegistryFactory; @@ -51,7 +51,7 @@ use Org\Mxchange\CoreFramework\Task\Taskable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria { +abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria { /** * Node types */ diff --git a/application/hub/classes/package/assembler/class_PackageAssembler.php b/application/hub/classes/package/assembler/class_PackageAssembler.php index e83b847ca..91359b8cd 100644 --- a/application/hub/classes/package/assembler/class_PackageAssembler.php +++ b/application/hub/classes/package/assembler/class_PackageAssembler.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Package\Assembler; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Container\Socket\StorableSocket; use Org\Shipsimu\Hub\Factory\Handler\Chunk\ChunkHandlerFactory; use Org\Shipsimu\Hub\Generic\BaseHubSystem; diff --git a/application/hub/classes/pools/class_BasePool.php b/application/hub/classes/pools/class_BasePool.php index bd838f65d..e666d6a82 100644 --- a/application/hub/classes/pools/class_BasePool.php +++ b/application/hub/classes/pools/class_BasePool.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Pool; -// Import hub-specific stuff +// Import application-specificl stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; use Org\Shipsimu\Hub\Pool\Poolable; diff --git a/application/hub/classes/producer/class_BaseProducer.php b/application/hub/classes/producer/class_BaseProducer.php index 73915cacb..5f0783fb3 100644 --- a/application/hub/classes/producer/class_BaseProducer.php +++ b/application/hub/classes/producer/class_BaseProducer.php @@ -200,7 +200,5 @@ abstract class BaseProducer extends BaseHubSystem { protected function isIncomingQueueLimitReached($configEntry) { return ($this->getConfigInstance()->getConfigEntry($configEntry) <= $this->getIncomingQueueInstance()->getStackCount(self::STACKER_NAME_IN_QUEUE)); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/producer/cruncher/class_BaseKeyProducer.php b/application/hub/classes/producer/cruncher/class_BaseKeyProducer.php index 857193062..e5cc41a3c 100644 --- a/application/hub/classes/producer/cruncher/class_BaseKeyProducer.php +++ b/application/hub/classes/producer/cruncher/class_BaseKeyProducer.php @@ -34,7 +34,5 @@ abstract class BaseKeyProducer extends BaseProducer { // Init key producer } -} -// [EOF] -?> +} diff --git a/application/hub/classes/producer/cruncher/class_BaseUnitProducer.php b/application/hub/classes/producer/cruncher/class_BaseUnitProducer.php index c8fac2e5a..7df7bb9c4 100644 --- a/application/hub/classes/producer/cruncher/class_BaseUnitProducer.php +++ b/application/hub/classes/producer/cruncher/class_BaseUnitProducer.php @@ -45,7 +45,5 @@ abstract class BaseUnitProducer extends BaseProducer { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/producer/miner/class_BaseBlockProducer.php b/application/hub/classes/producer/miner/class_BaseBlockProducer.php index 4ed231824..ae05012fd 100644 --- a/application/hub/classes/producer/miner/class_BaseBlockProducer.php +++ b/application/hub/classes/producer/miner/class_BaseBlockProducer.php @@ -36,7 +36,5 @@ abstract class BaseBlockProducer extends BaseProducer { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/recipient/class_BaseRecipient.php b/application/hub/classes/recipient/class_BaseRecipient.php index c93976e91..e5b566109 100644 --- a/application/hub/classes/recipient/class_BaseRecipient.php +++ b/application/hub/classes/recipient/class_BaseRecipient.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Recipient; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseRecipient extends BaseHubSystem { +abstract class BaseRecipient extends BaseHubSystem { /** * Protected constructor * diff --git a/application/hub/classes/recipient/direct/class_DirectRecipient.php b/application/hub/classes/recipient/direct/class_DirectRecipient.php index 21c8b4987..dac9bfa6c 100644 --- a/application/hub/classes/recipient/direct/class_DirectRecipient.php +++ b/application/hub/classes/recipient/direct/class_DirectRecipient.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Recipient\Direct; -// Import hub-specific sutff +// Import application-specific sutff use Org\Shipsimu\Hub\Network\Package\NetworkPackage; use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient; use Org\Shipsimu\Hub\Network\Recipient\Recipient; diff --git a/application/hub/classes/recipient/self/class_SelfRecipient.php b/application/hub/classes/recipient/self/class_SelfRecipient.php index e468cdbda..341c3334a 100644 --- a/application/hub/classes/recipient/self/class_SelfRecipient.php +++ b/application/hub/classes/recipient/self/class_SelfRecipient.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Recipient\Loopback; -// Import hub-specific sutff +// Import application-specific sutff use Org\Shipsimu\Hub\Network\Package\NetworkPackage; use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient; use Org\Shipsimu\Hub\Network\Recipient\Recipient; diff --git a/application/hub/classes/recipient/upper/class_UpperRecipient.php b/application/hub/classes/recipient/upper/class_UpperRecipient.php index 09c479f4f..56552595d 100644 --- a/application/hub/classes/recipient/upper/class_UpperRecipient.php +++ b/application/hub/classes/recipient/upper/class_UpperRecipient.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Network\Recipient\Upper; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; use Org\Shipsimu\Hub\Network\Package\NetworkPackage; use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient; diff --git a/application/hub/classes/resolver/protocol/class_BaseProtocolResolver.php b/application/hub/classes/resolver/protocol/class_BaseProtocolResolver.php index ca48cdd85..5140942dc 100644 --- a/application/hub/classes/resolver/protocol/class_BaseProtocolResolver.php +++ b/application/hub/classes/resolver/protocol/class_BaseProtocolResolver.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Resolver\Protocol; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** diff --git a/application/hub/classes/resolver/state/class_BaseStateResolver.php b/application/hub/classes/resolver/state/class_BaseStateResolver.php index 06cf46fab..b03b6f6e8 100644 --- a/application/hub/classes/resolver/state/class_BaseStateResolver.php +++ b/application/hub/classes/resolver/state/class_BaseStateResolver.php @@ -28,7 +28,7 @@ use Org\Mxchange\CoreFramework\Resolver\BaseResolver; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseStateResolver extends BaseResolver { +abstract class BaseStateResolver extends BaseResolver { /** * Prefix for local, remote or other resolver */ diff --git a/application/hub/classes/scanner/class_BaseScanner.php b/application/hub/classes/scanner/class_BaseScanner.php index 2716cb2b1..95de43636 100644 --- a/application/hub/classes/scanner/class_BaseScanner.php +++ b/application/hub/classes/scanner/class_BaseScanner.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Scanner; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseScanner extends BaseHubSystem { +abstract class BaseScanner extends BaseHubSystem { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseScanner extends BaseHubSystem { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/source/class_BaseSource.php b/application/hub/classes/source/class_BaseSource.php index fe05bd7f1..17a0d75a2 100644 --- a/application/hub/classes/source/class_BaseSource.php +++ b/application/hub/classes/source/class_BaseSource.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Source; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; /** @@ -27,7 +27,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseSource extends BaseHubSystem { +abstract class BaseSource extends BaseHubSystem { /** * Protected constructor * @@ -38,7 +38,5 @@ class BaseSource extends BaseHubSystem { // Call parent constructor parent::__construct($className); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/source/class_BaseUrlSource.php b/application/hub/classes/source/class_BaseUrlSource.php index 74be57889..a246a5c4e 100644 --- a/application/hub/classes/source/class_BaseUrlSource.php +++ b/application/hub/classes/source/class_BaseUrlSource.php @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseUrlSource extends BaseSource { +abstract class BaseUrlSource extends BaseSource { // Stack name for all URLs const STACKER_NAME_URLS = 'urls'; @@ -110,7 +110,5 @@ class BaseUrlSource extends BaseSource { // Debug message /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-SOURCE : EXIT!'); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/communicator/class_BaseCommunicatorState.php b/application/hub/classes/states/communicator/class_BaseCommunicatorState.php index 1ddb6cba0..a717f1e04 100644 --- a/application/hub/classes/states/communicator/class_BaseCommunicatorState.php +++ b/application/hub/classes/states/communicator/class_BaseCommunicatorState.php @@ -27,7 +27,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseCommunicatorState extends BaseState { +abstract class BaseCommunicatorState extends BaseState { /** * Protected constructor * @@ -53,7 +53,5 @@ class BaseCommunicatorState extends BaseState { throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE); } // END - if } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/crawler/class_BaseCrawlerState.php b/application/hub/classes/states/crawler/class_BaseCrawlerState.php index 6c715641e..796b3c420 100644 --- a/application/hub/classes/states/crawler/class_BaseCrawlerState.php +++ b/application/hub/classes/states/crawler/class_BaseCrawlerState.php @@ -27,7 +27,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseCrawlerState extends BaseState { +abstract class BaseCrawlerState extends BaseState { /** * Protected constructor * @@ -53,7 +53,5 @@ class BaseCrawlerState extends BaseState { throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE); } // END - if } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/cruncher/class_BaseCruncherState.php b/application/hub/classes/states/cruncher/class_BaseCruncherState.php index eb7df383f..25b174f3a 100644 --- a/application/hub/classes/states/cruncher/class_BaseCruncherState.php +++ b/application/hub/classes/states/cruncher/class_BaseCruncherState.php @@ -27,7 +27,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseCruncherState extends BaseState { +abstract class BaseCruncherState extends BaseState { /** * Protected constructor * @@ -63,7 +63,5 @@ class BaseCruncherState extends BaseState { // Just compare it... return ($this instanceof CruncherVirginState); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/dht/class_BaseDhtState.php b/application/hub/classes/states/dht/class_BaseDhtState.php index 167e5eda2..5d4500124 100644 --- a/application/hub/classes/states/dht/class_BaseDhtState.php +++ b/application/hub/classes/states/dht/class_BaseDhtState.php @@ -28,7 +28,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseDhtState extends BaseState { +abstract class BaseDhtState extends BaseState { /** * Protected constructor * @@ -68,7 +68,5 @@ class BaseDhtState extends BaseState { // Return status return $isBooting; } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/miner/class_BaseMinerState.php b/application/hub/classes/states/miner/class_BaseMinerState.php index 455b3506e..e8127302a 100644 --- a/application/hub/classes/states/miner/class_BaseMinerState.php +++ b/application/hub/classes/states/miner/class_BaseMinerState.php @@ -27,7 +27,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseMinerState extends BaseState { +abstract class BaseMinerState extends BaseState { /** * Protected constructor * @@ -93,7 +93,5 @@ class BaseMinerState extends BaseState { // Just compare it... return ($this instanceof MinerVirginState); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/node/class_BaseNodeState.php b/application/hub/classes/states/node/class_BaseNodeState.php index cae52d00a..7bd26001b 100644 --- a/application/hub/classes/states/node/class_BaseNodeState.php +++ b/application/hub/classes/states/node/class_BaseNodeState.php @@ -27,7 +27,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseNodeState extends BaseState { +abstract class BaseNodeState extends BaseState { /** * Protected constructor * @@ -98,7 +98,5 @@ class BaseNodeState extends BaseState { throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE); } // END - if } -} -// [EOF] -?> +} diff --git a/application/hub/classes/states/peer/class_BasePeerState.php b/application/hub/classes/states/peer/class_BasePeerState.php index 31daf2987..a4d1a7b8e 100644 --- a/application/hub/classes/states/peer/class_BasePeerState.php +++ b/application/hub/classes/states/peer/class_BasePeerState.php @@ -27,7 +27,7 @@ use Org\Mxchange\CoreFramework\State\BaseState; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BasePeerState extends BaseState { +abstract class BasePeerState extends BaseState { /** * Protected constructor * @@ -63,7 +63,5 @@ class BasePeerState extends BaseState { // Just compare it... return ($this instanceof ConnectedPeerState); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/statistics/connection/class_ConnectionStatisticsHelper.php b/application/hub/classes/statistics/connection/class_ConnectionStatisticsHelper.php index f6738ae6a..90a080fb1 100644 --- a/application/hub/classes/statistics/connection/class_ConnectionStatisticsHelper.php +++ b/application/hub/classes/statistics/connection/class_ConnectionStatisticsHelper.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Helper\Connection; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper; diff --git a/application/hub/classes/tags/class_BaseTag.php b/application/hub/classes/tags/class_BaseTag.php index f1b8c5921..c60da0cab 100644 --- a/application/hub/classes/tags/class_BaseTag.php +++ b/application/hub/classes/tags/class_BaseTag.php @@ -2,7 +2,7 @@ // Own namespace namespace Org\Shipsimu\Hub\Tag; -// Import hub-specific stuff +// Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework stuff @@ -30,7 +30,7 @@ use Org\Mxchange\CoreFramework\Registry\Registerable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseTag extends BaseHubSystem implements Registerable { +abstract class BaseTag extends BaseHubSystem implements Registerable { /** * An array with all tags */ @@ -65,7 +65,5 @@ class BaseTag extends BaseHubSystem implements Registerable { protected final function getTags () { return $this->tags; } -} -// [EOF] -?> +} diff --git a/application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php b/application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php index c4da47a5e..a340757ba 100644 --- a/application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php +++ b/application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php @@ -30,7 +30,7 @@ use Org\Mxchange\CoreFramework\Task\BaseTask; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseUrlSourceTask extends BaseTask { +abstract class BaseUrlSourceTask extends BaseTask { /** * Protected constructor * @@ -54,7 +54,5 @@ class BaseUrlSourceTask extends BaseTask { // And set it here $this->setUrlSourceInstance($sourceInstance); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/template/answer/class_BaseXmlAnswerTemplateEngine.php b/application/hub/classes/template/answer/class_BaseXmlAnswerTemplateEngine.php index 857c286b2..13dcfca09 100644 --- a/application/hub/classes/template/answer/class_BaseXmlAnswerTemplateEngine.php +++ b/application/hub/classes/template/answer/class_BaseXmlAnswerTemplateEngine.php @@ -32,7 +32,7 @@ use Org\Mxchange\CoreFramework\Template\CompileableTemplate; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseXmlAnswerTemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable { +abstract class BaseXmlAnswerTemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable { /** * Generic 'answer-status' field */ @@ -68,7 +68,5 @@ class BaseXmlAnswerTemplateEngine extends BaseXmlTemplateEngine implements Compi // Pop the last entry $this->getStackInstance()->popNamed($this->getStackerName()); } -} -// [EOF] -?> +} diff --git a/application/hub/classes/template/class_BaseXmlTemplateEngine.php b/application/hub/classes/template/class_BaseXmlTemplateEngine.php index 1d6132379..37097c05b 100644 --- a/application/hub/classes/template/class_BaseXmlTemplateEngine.php +++ b/application/hub/classes/template/class_BaseXmlTemplateEngine.php @@ -32,7 +32,7 @@ use Org\Mxchange\CoreFramework\Template\Engine\BaseTemplateEngine; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseXmlTemplateEngine extends BaseTemplateEngine { +abstract class BaseXmlTemplateEngine extends BaseTemplateEngine { /** * Main nodes in the XML tree */ @@ -333,4 +333,5 @@ class BaseXmlTemplateEngine extends BaseTemplateEngine { //* DEBUG: */ echo "call: ".$methodName."
\n"; call_user_func_array(array($this, $methodName), array()); } + } diff --git a/application/hub/config-local.php-dist b/application/hub/config-local.php-dist index 9417e4c06..c04ed03b8 100644 --- a/application/hub/config-local.php-dist +++ b/application/hub/config-local.php-dist @@ -62,6 +62,3 @@ $cfg->setConfigEntry('hub_bootstrap_nodes', 'tcp://188.138.90.169:9060'); // CFG: ENABLE-FEATURE-FUSE // Enable this, if you have fuse.dll/so installed and want to access your node: $cfg->setConfigEntry('enable_feature_fuse', 'Y'); - -// [EOF] -?> diff --git a/application/hub/exceptions/dht/class_DhtBootstrapNotAcceptedException.php b/application/hub/exceptions/dht/class_DhtBootstrapNotAcceptedException.php index 6dcca7e77..578379c61 100644 --- a/application/hub/exceptions/dht/class_DhtBootstrapNotAcceptedException.php +++ b/application/hub/exceptions/dht/class_DhtBootstrapNotAcceptedException.php @@ -33,6 +33,7 @@ use Org\Mxchange\CoreFramework\Generic\FrameworkException; * along with this program. If not, see . */ class DhtBootstrapNotAcceptedException extends FrameworkException { + /** * The super constructor for all exceptions * @@ -56,7 +57,5 @@ class DhtBootstrapNotAcceptedException extends FrameworkException { // Call parent exception constructor parent::__construct($message, $code); } -} -// [EOF] -?> +} diff --git a/application/hub/exceptions/requests/class_NoRequestNodeListAttemptedException.php b/application/hub/exceptions/requests/class_NoRequestNodeListAttemptedException.php index b2ce616a8..9b24803b1 100644 --- a/application/hub/exceptions/requests/class_NoRequestNodeListAttemptedException.php +++ b/application/hub/exceptions/requests/class_NoRequestNodeListAttemptedException.php @@ -28,6 +28,7 @@ use Org\Mxchange\CoreFramework\Generic\FrameworkException; * along with this program. If not, see . */ class NoRequestNodeListAttemptedException extends FrameworkException { + /** * The super constructor for all exceptions * @@ -47,7 +48,5 @@ class NoRequestNodeListAttemptedException extends FrameworkException { // Call parent exception constructor parent::__construct($message, $code); } -} -// [EOF] -?> +} -- 2.39.5