*
* @return $proxyInstance An instance of a AptProxy class
*/
- public final static function createNodeConsoleAptProxy () {
+ public final static function createNodeConsoleAptProxy (): AptProxy {
// Get new instance
$proxyInstance = new NodeConsoleAptProxy();
*
* @return void
*/
- public function doBootstrapping () {
+ public function doBootstrapping (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function outputConsoleTeaser () {
+ public function outputConsoleTeaser (): void {
// Get the app instance (for shortening our code)
$applicationInstance = ApplicationHelper::getSelfInstance();
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return $chatInstance An instance of a Chatter class
*/
- public final static function createNodeConsoleChat () {
+ public final static function createNodeConsoleChat (): Chatter {
// Get new instance
$chatInstance = new NodeConsoleChat();
*
* @return void
*/
- public function doBootstrapping () {
+ public function doBootstrapping (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function outputConsoleTeaser () {
+ public function outputConsoleTeaser (): void {
// Get the app instance (for shortening our code)
$applicationInstance = ApplicationHelper::getSelfInstance();
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubConsoleAptProxyCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleAptProxyCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubConsoleAptProxyCommand();
* @return void
* @todo Try to create a AptProxyActivationTask or so
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a registry and the application instance from it
$applicationInstance = ApplicationHelper::getSelfInstance();
* @return void
* @todo Should we add some more filters?
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('apt_proxy_php_requirements_filter_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('apt_proxy_initializer_filter_class'));
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubConsoleChatCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleChatCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubConsoleChatCommand();
* @return void
* @todo Try to create a ChatActivationTask or so
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a registry and the application instance from it
$applicationInstance = ApplicationHelper::getSelfInstance();
* @return void
* @todo Should we add some more filters?
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('chat_php_requirements_filter_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('chat_initializer_filter_class'));
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubConsoleCrawlerCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleCrawlerCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubConsoleCrawlerCommand();
* @return void
* @todo Try to create a CrawlerActivationTask or so
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a registry and the application instance from it
$applicationInstance = ApplicationHelper::getSelfInstance();
* @return void
* @todo Should we add some more filters?
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('crawler_php_requirements_filter_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('crawler_initializer_filter_class'));
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubConsoleCruncherCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleCruncherCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubConsoleCruncherCommand();
* @return void
* @todo Try to create a CruncherActivationTask or so
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a registry and the application instance from it
$applicationInstance = ApplicationHelper::getSelfInstance();
* @return void
* @todo Should we add some more filters?
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('cruncher_php_requirements_filter_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('cruncher_initializer_filter_class'));
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubConsoleDaemonCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleDaemonCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubConsoleDaemonCommand();
* @return void
* @todo Try to create a HubActivationTask or so
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a registry and the application instance from it
$applicationInstance = ApplicationHelper::getSelfInstance();
* @return void
* @todo Should we add some more filters?
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_php_requirements_filter_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_initializer_filter_class'));
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubConsoleMinerCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleMinerCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubConsoleMinerCommand();
* @return void
* @todo Try to create a MinerActivationTask or so
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a registry and the application instance from it
$applicationInstance = ApplicationHelper::getSelfInstance();
* @return void
* @todo Should we add some more filters?
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('miner_php_requirements_filter_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('miner_initializer_filter_class'));
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public static final function createHubHtmlIndexCommand (CommandResolver $resolverInstance) {
+ public static final function createHubHtmlIndexCommand (CommandResolver $resolverInstance): Commandable {
// Get new instance
$commandInstance = new HubHtmlIndexCommand();
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// This command doesn't handle any POST requests, so only handle get request
if ($requestInstance->isPostRequestMethod()) {
// Don't handle this here
* @return void
* @todo 0% done
*/
- public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
// Add pre filters
//$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_php_requirements_filter_class'));
}
*
* @return $crawlerInstance An instance of a Crawler class
*/
- public final static function createNodeConsoleDistributedCrawler () {
+ public final static function createNodeConsoleDistributedCrawler (): Crawler {
// Get new instance
$crawlerInstance = new NodeConsoleDistributedCrawler();
*
* @return void
*/
- public function doBootstrapping () {
+ public function doBootstrapping (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function outputConsoleTeaser () {
+ public function outputConsoleTeaser (): void {
// Get the app instance (for shortening our code)
$applicationInstance = ApplicationHelper::getSelfInstance();
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
// Add distributed crawler related bootstrap-filters
$controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('crawler_bootstrap_distributed_task_handler_initializer_filter_class'));
}
*
* @return $cruncherInstance An instance of this hub-cruncher class
*/
- public final static function createHubOpenSslCruncher () {
+ public final static function createHubOpenSslCruncher (): CruncherHelper {
// Get a new instance
$cruncherInstance = new HubOpenSslCruncher();
*
* @return void
*/
- protected function fillInBufferQueueWithTestUnits () {
+ protected function fillInBufferQueueWithTestUnits (): void {
// Are test units enabled?
if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cruncher_test_units_enabled') == 'N') {
// They are disabled, so skip any further steps
*
* @return void
*/
- protected function fillInBufferQueueWithWorkUnits () {
+ protected function fillInBufferQueueWithWorkUnits (): void {
// This cruncher's state must not be one of these: 'virgin'
if ($this->getStateInstance()->isCruncherStateVirgin()) {
// We can silently skip here, until the generation is finished
* @return void
* @todo Implement this method
*/
- public function doBootstrapping () {
+ public function doBootstrapping (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function outputConsoleTeaser () {
+ public function outputConsoleTeaser (): void {
// Output all lines
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(' ');
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('OpenSSL Cruncher v' . $this->getVersion() . ' is starting ...');
* @return void
* @todo 0% done
*/
- public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
// Add some filters here
DebugMiddleware::getSelfInstance()->partialStub('Please add some cruncher-specific filters, if required.');
}
* @return void
* @throws UnsupportedOperationException If this method is called
*/
- public function discover (Requestable $requestInstance) {
+ public function discover (Requestable $requestInstance): void {
throw new UnsupportedOperationException('This method is not supported.');
}
* @return void
* @todo 0% done
*/
- public function addResultsToHelper (HelpableTemplate $helperInstance) {
+ public function addResultsToHelper (HelpableTemplate $helperInstance): void {
// Undone part
DebugMiddleware::getSelfInstance()->partialStub('Unfinished method. helperInstance=' . $helperInstance->__toString());
}
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubActivation???Filter () {
+ public final static function createHubActivation???Filter (): Filterable {
// Get a new instance
$filterInstance = new HubActivation???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
// Now do something
DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
}
-}
-// [EOF]
-?>
+}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeActivationAnnouncementFilter () {
+ public static final function createNodeActivationAnnouncementFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeActivationAnnouncementFilter();
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get task handler instance
$handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createAptProxyInitializationFilter () {
+ public static final function createAptProxyInitializationFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyInitializationFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get an instance
$proxyInstance = ObjectFactory::createObjectByConfiguredName('node_console_apt_proxy_class');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createAptProxyPhpRequirementsFilter () {
+ public static final function createAptProxyPhpRequirementsFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyPhpRequirementsFilter();
* @throws FilterChainException If a required PHP function is not available
* @todo Add more test and try to add an extra message to the thrown exception
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// By default, the requirement check is passed and zero checks are failed
$checkPassed = TRUE;
$checksFailed = 0;
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createAptProxyWelcomeTeaserFilter () {
+ public static final function createAptProxyWelcomeTeaserFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyWelcomeTeaserFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo Handle over the $responseInstance to outputConsoleTeaser()
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createAptProxyBootstrap???Filter () {
+ public final static function createAptProxyBootstrap???Filter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyBootstrap???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get apt-proxy instance
$proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createAptProxyBootstrapExtraBootstrappingFilter () {
+ public static final function createAptProxyBootstrapExtraBootstrappingFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyBootstrapExtraBootstrappingFilter();
* @return void
* @throws FilterChainException If $proxyInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get apt-proxy instance
$proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createAptProxyBootstrapGenericActivationFilter () {
+ public final static function createAptProxyBootstrapGenericActivationFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyBootstrapGenericActivationFilter();
* @return void
* @todo Maybe we want to do somthing more here?
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a apt-proxy instance
$proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createChatBootstrap???Filter () {
+ public final static function createChatBootstrap???Filter (): Filterable {
// Get a new instance
$filterInstance = new ChatBootstrap???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get chat instance
$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createChatBootstrapExtraBootstrappingFilter () {
+ public static final function createChatBootstrapExtraBootstrappingFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatBootstrapExtraBootstrappingFilter();
* @return void
* @throws FilterChainException If $chatInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get chat instance
$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createChatBootstrapGenericActivationFilter () {
+ public final static function createChatBootstrapGenericActivationFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatBootstrapGenericActivationFilter();
* @return void
* @todo Maybe we want to do somthing more here?
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a chat instance
$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCrawlerBootstrap???Filter () {
+ public final static function createCrawlerBootstrap???Filter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerBootstrap???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get crawler instance
$crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCrawlerBootstrapExtraBootstrappingFilter () {
+ public static final function createCrawlerBootstrapExtraBootstrappingFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerBootstrapExtraBootstrappingFilter();
* @return void
* @throws FilterChainException If $crawlerInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get crawler instance
$crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCrawlerBootstrapGenericActivationFilter () {
+ public final static function createCrawlerBootstrapGenericActivationFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerBootstrapGenericActivationFilter();
* @return void
* @todo Maybe we want to do somthing more here?
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a crawler instance
$crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCruncherBootstrap???Filter () {
+ public final static function createCruncherBootstrap???Filter (): Filterable {
// Get a new instance
$filterInstance = new CruncherBootstrap???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get cruncher instance
$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCruncherBootstrapBufferQueueInitializerFilter () {
+ public final static function createCruncherBootstrapBufferQueueInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherBootstrapBufferQueueInitializerFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get cruncher instance
$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCruncherBootstrapExtraBootstrappingFilter () {
+ public static final function createCruncherBootstrapExtraBootstrappingFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherBootstrapExtraBootstrappingFilter();
* @return void
* @throws FilterChainException If $cruncherInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get cruncher instance
$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCruncherBootstrapGenericActivationFilter () {
+ public final static function createCruncherBootstrapGenericActivationFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherBootstrapGenericActivationFilter();
* @return void
* @todo Maybe we want to do somthing more here?
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a cruncher instance
$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createMinerBootstrap???Filter () {
+ public final static function createMinerBootstrap???Filter (): Filterable {
// Get a new instance
$filterInstance = new MinerBootstrap???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get miner instance
$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createMinerBootstrapBufferQueueInitializerFilter () {
+ public final static function createMinerBootstrapBufferQueueInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerBootstrapBufferQueueInitializerFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get miner instance
$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createMinerBootstrapExtraBootstrappingFilter () {
+ public static final function createMinerBootstrapExtraBootstrappingFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerBootstrapExtraBootstrappingFilter();
* @return void
* @throws FilterChainException If $minerInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get miner instance
$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createMinerBootstrapGenericActivationFilter () {
+ public final static function createMinerBootstrapGenericActivationFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerBootstrapGenericActivationFilter();
* @return void
* @todo Maybe we want to do somthing more here?
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a miner instance
$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createNodeBootstrap???Filter () {
+ public final static function createNodeBootstrap???Filter (): Filterable {
// Get a new instance
$filterInstance = new NodeBootstrap???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeBootstrapExtraBootstrappingFilter () {
+ public static final function createNodeBootstrapExtraBootstrappingFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeBootstrapExtraBootstrappingFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeBootstrapGenerateNodeIdFilter () {
+ public static final function createNodeBootstrapGenerateNodeIdFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeBootstrapGenerateNodeIdFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createNodeBootstrapGeneratePrivateKeyFilter () {
+ public final static function createNodeBootstrapGeneratePrivateKeyFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeBootstrapGeneratePrivateKeyFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeBootstrapGenerateSessionIdFilter () {
+ public static final function createNodeBootstrapGenerateSessionIdFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeBootstrapGenerateSessionIdFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeBootstrapListenerPoolFilter () {
+ public static final function createNodeBootstrapListenerPoolFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeBootstrapListenerPoolFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCruncher???Filter () {
+ public final static function createCruncher???Filter (): Filterable {
// Get a new instance
$filterInstance = new Cruncher???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Implement this!
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
-}
-// [EOF]
-?>
+}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createChatInitializationFilter () {
+ public static final function createChatInitializationFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatInitializationFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get an instance
$chatInstance = ObjectFactory::createObjectByConfiguredName('node_console_chat_class');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createChatPhpRequirementsFilter () {
+ public static final function createChatPhpRequirementsFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatPhpRequirementsFilter();
* @throws FilterChainException If a required PHP function is not available
* @todo Add more test and try to add an extra message to the thrown exception
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// By default, the requirement check is passed and zero checks are failed
$checkPassed = TRUE;
$checksFailed = 0;
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createChatWelcomeTeaserFilter () {
+ public static final function createChatWelcomeTeaserFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatWelcomeTeaserFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo Handle over the $responseInstance to outputConsoleTeaser()
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHub!!!???Filter () {
+ public final static function createHub!!!???Filter (): Filterable {
// Get a new instance
$filterInstance = new Hub!!!???Filter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
* @return void
* @todo Exceptions from renderXmlContent() are currently unhandled
*/
- protected function genericProcessMessage ($messageType, DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ protected function genericProcessMessage (string $messageType, DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Get a template instance from the factory
$templateInstance = XmlTemplateEngineFactory::createXmlTemplateEngineInstance(sprintf('node_%s_template_class', $messageType));
--- /dev/null
+<?php
+// Own namespace
+namespace Org\Shipsimu\Hub\Crawler\Filter\;
+
+// Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
+/**
+ * A ??? filter for Crawler
+ *
+ * @author Roland Haeder <webmaster@ship-simu.org>
+ * @version 0.0.0
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2022 Hub Developer Team
+ * @license GNU GPL 3.0 or any newer version
+ * @link http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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 HubCrawler???Filter extends BaseHubFilter implements Filterable {
+ /**
+ * Protected constructor
+ *
+ * @return void
+ */
+ private function __construct () {
+ // Call parent constructor
+ parent::__construct(__CLASS__);
+ }
+
+ /**
+ * Creates an instance of this filter class
+ *
+ * @return $filterInstance An instance of this filter class
+ */
+ public final static function createHubCrawler???Filter (): Filterable {
+ // Get a new instance
+ $filterInstance = new HubCrawler???Filter();
+
+ // Return the instance
+ return $filterInstance;
+ }
+
+ /**
+ * Executes the filter with given request and response objects
+ *
+ * @param $requestInstance An instance of a class with an Requestable interface
+ * @param $responseInstance An instance of a class with an Responseable interface
+ * @return void
+ * @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
+ * @todo 0% done
+ */
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
+ // Get node instance
+ $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
+
+ // Now do something
+ DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
+ }
+
+}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCrawlerInitializationFilter () {
+ public static final function createCrawlerInitializationFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerInitializationFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Default crawler mode is full-blown flag ship!
$crawlerMode = 'distributed';
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCrawlerPhpRequirementsFilter () {
+ public static final function createCrawlerPhpRequirementsFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerPhpRequirementsFilter();
* @throws FilterChainException If a required PHP function is not available
* @todo Add more test and try to add an extra message to the thrown exception
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// By default, the requirement check is passed and zero checks are failed
$checkPassed = TRUE;
$checksFailed = 0;
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCrawlerWelcomeTeaserFilter () {
+ public static final function createCrawlerWelcomeTeaserFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerWelcomeTeaserFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo Handle over the $responseInstance to outputConsoleTeaser()
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createCruncher???Filter () {
+ public final static function createCruncher???Filter (): Filterable {
// Get a new instance
$filterInstance = new Cruncher???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Implement this!
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCruncherInitializationFilter () {
+ public static final function createCruncherInitializationFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherInitializationFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// The default cruncher-mode is from our configuration
$cruncherMode = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cruncher_default_mode');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCruncherPhpRequirementsFilter () {
+ public static final function createCruncherPhpRequirementsFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherPhpRequirementsFilter();
* @throws FilterChainException If a required PHP function is not available
* @todo Add more test and try to add an extra message to the thrown exception
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// By default, the requirement check is passed and zero checks are failed
$checkPassed = TRUE;
$checksFailed = 0;
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCruncherWelcomeTeaserFilter () {
+ public static final function createCruncherWelcomeTeaserFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherWelcomeTeaserFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo Handle over the $responseInstance to outputConsoleTeaser()
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createMiner???Filter () {
+ public final static function createMiner???Filter (): Filterable {
// Get a new instance
$filterInstance = new Miner???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Implement this!
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
-}
-// [EOF]
-?>
+}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createMinerInitializationFilter () {
+ public static final function createMinerInitializationFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerInitializationFilter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// The default miner-mode is from our configuration
$minerMode = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('miner_default_mode');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createMinerPhpRequirementsFilter () {
+ public static final function createMinerPhpRequirementsFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerPhpRequirementsFilter();
* @throws FilterChainException If a required PHP function is not available
* @todo Add more test and try to add an extra message to the thrown exception
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// By default, the requirement check is passed and zero checks are failed
$checkPassed = TRUE;
$checksFailed = 0;
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createMinerWelcomeTeaserFilter () {
+ public static final function createMinerWelcomeTeaserFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerWelcomeTeaserFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo Handle over the $responseInstance to outputConsoleTeaser()
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createNode???Filter () {
+ public final static function createNode???Filter (): Filterable {
// Get a new instance
$filterInstance = new Node???Filter();
* @return void
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Implement this!
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
-}
-// [EOF]
-?>
+}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeInitializationFilter () {
+ public static final function createNodeInitializationFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeInitializationFilter();
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Try to instance it by using a factory
try {
// Get an instance
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodePhpRequirementsFilter () {
+ public static final function createNodePhpRequirementsFilter (): Filterable {
// Get a new instance
$filterInstance = new NodePhpRequirementsFilter();
* @throws FilterChainException If a required PHP function is not available
* @todo Add more test and try to add an extra message to the thrown exception
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// By default, the requirement check is passed and zero checks are failed
$checkPassed = TRUE;
$checksFailed = 0;
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeWelcomeTeaserFilter () {
+ public static final function createNodeWelcomeTeaserFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeWelcomeTeaserFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo Handle over the $responseInstance to outputConsoleTeaser()
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createAptProxyShutdownFilter () {
+ public static final function createAptProxyShutdownFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyShutdownFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createChatShutdownFilter () {
+ public static final function createChatShutdownFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatShutdownFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCrawlerShutdownFilter () {
+ public static final function createCrawlerShutdownFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerShutdownFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCruncherShutdownFilter () {
+ public static final function createCruncherShutdownFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherShutdownFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createMinerShutdownFilter () {
+ public static final function createMinerShutdownFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerShutdownFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubShutdown???Filter () {
+ public final static function createHubShutdown???Filter (): Filterable {
// Get a new instance
$filterInstance = new HubShutdown???Filter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeShutdownFlushNodeListFilter () {
+ public static final function createNodeShutdownFlushNodeListFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeShutdownFlushNodeListFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeShutdownNodeFilter () {
+ public static final function createNodeShutdownNodeFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeShutdownNodeFilter();
* @return void
* @throws FilterChainException If $nodeInstance is null (no NullPointerException please)
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeShutdownTaskHandlerFilter () {
+ public static final function createNodeShutdownTaskHandlerFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeShutdownTaskHandlerFilter();
* @throws FilterChainException If $nodeInstance is null (no NullPointerException here)
* @todo 0% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get task handler instance
$handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
parent::__construct(__CLASS__);
// Init array
- $this->dataXmlNodes = array(
+ $this->dataXmlNodes = [
XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_EXTERNAL_ADDRESS => '',
XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_INTERNAL_ADDRESS => '',
XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_STATUS => '',
XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_ID => '',
XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_SESSION_ID => '',
BaseXmlAnswerTemplateEngine::ANSWER_STATUS => '',
- );
+ ];
}
/**
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageAnnouncementAnswerTagFilter () {
+ public final static function createPackageAnnouncementAnswerTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageAnnouncementAnswerTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process message in generic way
$this->genericProcessMessage('announcement_answer', $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
parent::__construct(__CLASS__);
// Init array
- $this->dataXmlNodes = array(
+ $this->dataXmlNodes = [
XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_SESSION_ID => '',
XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_NODE_LIST => '',
BaseXmlAnswerTemplateEngine::ANSWER_STATUS => '',
- );
+ ];
}
/**
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageDhtBootstrapAnswerTagFilter () {
+ public final static function createPackageDhtBootstrapAnswerTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageDhtBootstrapAnswerTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process message in generic way
$this->genericProcessMessage('dht_bootstrap_answer', $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
parent::__construct(__CLASS__);
// Init array
- $this->dataXmlNodes = array(
+ $this->dataXmlNodes = [
XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_SESSION_ID => '',
XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_NODE_LIST => '',
BaseXmlAnswerTemplateEngine::ANSWER_STATUS => '',
- );
+ ];
}
/**
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageRequestNodeListAnswerTagFilter () {
+ public final static function createPackageRequestNodeListAnswerTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageRequestNodeListAnswerTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process message in generic way
$this->genericProcessMessage('request_node_list_answer', $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageAnnouncementTagFilter () {
+ public final static function createPackageAnnouncementTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageAnnouncementTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process message generic
$this->genericProcessMessage('announcement', $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageDhtBootstrapTagFilter () {
+ public final static function createPackageDhtBootstrapTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageDhtBootstrapTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process message generic
$this->genericProcessMessage('dht_bootstrap', $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
parent::__construct(__CLASS__);
// Init XML nodes array which contains the required data
- $this->dataXmlNodes = array(
+ $this->dataXmlNodes = [
XmlRequestNodeListTemplateEngine::REQUEST_DATA_ACCEPTED_OBJECT_TYPES => '',
XmlRequestNodeListTemplateEngine::REQUEST_DATA_SESSION_ID => '',
- );
+ ];
}
/**
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageRequestNodeListTagFilter () {
+ public final static function createPackageRequestNodeListTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageRequestNodeListTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process messasge generic
$this->genericProcessMessage('request_node_list', $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
parent::__construct(__CLASS__);
// Init array
- $this->dataXmlNodes = array(
+ $this->dataXmlNodes = [
XmlSelfConnectTemplateEngine::SELF_CONNECT_DATA_NODE_ID => '',
XmlSelfConnectTemplateEngine::SELF_CONNECT_DATA_SESSION_ID => '',
- );
+ ];
}
/**
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createPackageSelfConnectTagFilter () {
+ public final static function createPackageSelfConnectTagFilter (): FilterablePackage {
// Get a new instance
$filterInstance = new PackageSelfConnectTagFilter();
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
* @param $handlerInstance An instance of a Receivable class
* @return void
*/
- public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+ public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
// Process generic
$this->genericProcessMessage(Tagable::TAG_SELF_CONNECT, $messageInstance, $handlerInstance);
}
* @return void
* @throws UnsupportedOperationException If this method is called, please use processMessage() instead!
*/
- public function postProcessMessage (Receivable $handlerInstance) {
+ public function postProcessMessage (Receivable $handlerInstance): void {
// Please don't call this method
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createAptProxyTaskHandlerInitializerFilter () {
+ public static final function createAptProxyTaskHandlerInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new AptProxyTaskHandlerInitializerFilter();
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo 5% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get apt-proxy instance
//$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createChatTaskHandlerInitializerFilter () {
+ public static final function createChatTaskHandlerInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new ChatTaskHandlerInitializerFilter();
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo 5% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get chat instance
//$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo 10% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get a new task handler instance
$handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCrawlerDistributedTaskHandlerInitializerFilter () {
+ public static final function createCrawlerDistributedTaskHandlerInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new CrawlerDistributedTaskHandlerInitializerFilter();
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo 10% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Run parent method first
parent::execute($requestInstance, $responseInstance);
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createCruncherTaskHandlerInitializerFilter () {
+ public static final function createCruncherTaskHandlerInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new CruncherTaskHandlerInitializerFilter();
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo 5% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get cruncher instance
//$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createMinerTaskHandlerInitializerFilter () {
+ public static final function createMinerTaskHandlerInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new MinerTaskHandlerInitializerFilter();
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo 5% done
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get miner instance
//$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
*
* @return $filterInstance An instance of this filter class
*/
- public static final function createNodeTaskHandlerInitializerFilter () {
+ public static final function createNodeTaskHandlerInitializerFilter (): Filterable {
// Get a new instance
$filterInstance = new NodeTaskHandlerInitializerFilter();
* @throws FilterChainException If the filter chain needs to be interrupted
* @todo Maybe some more tasks needs to be added?
*/
- public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+ public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
// Get node instance
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE-TASK-HANDLER-INIT-FILTER: Creating node instance ...');
$nodeInstance = NodeObjectFactory::createNodeInstance();
*
* @return $minerInstance An instance of this hub-miner class
*/
- public final static function createHubCoinMiner () {
+ public final static function createHubCoinMiner (): MinerHelper {
// Get a new instance
$minerInstance = new HubCoinMiner();
*
* @return void
*/
- protected function fillInBufferQueueWithTestUnits () {
+ protected function fillInBufferQueueWithTestUnits (): void {
// Are test units enabled?
if (!FrameworkBootstrap::getConfigurationInstance()->isEnabled('miner_test_units')) {
// They are disabled, so skip any further steps
*
* @return void
*/
- protected function fillInBufferQueueWithWorkUnits () {
+ protected function fillInBufferQueueWithWorkUnits (): void {
// This miner's state must not be one of these: 'virgin'
if ($this->getStateInstance()->isMinerStateVirgin()) {
// We can silently skip here, until the generation is finished
* @return void
* @todo Implement this method
*/
- public function doBootstrapping () {
+ public function doBootstrapping (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function outputConsoleTeaser () {
+ public function outputConsoleTeaser (): void {
// Output all lines
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(' ');
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Hubcoin miner v' . $this->getVersion() . ' is starting ...');
* @return void
* @todo 0% done
*/
- public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+ public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
// Add some filters here
DebugMiddleware::getSelfInstance()->partialStub('Please add some miner-specific filters, if required.');
}
*
* @return void
*/
- function doBootstrapping ();
+ function doBootstrapping (): void;
/**
* Outputs the console teaser. This should only be executed on startup or
*
* @return void
*/
- function outputConsoleTeaser ();
+ function outputConsoleTeaser (): void;
/**
* Add some apt-proxy-specific filters
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+ function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
/**
* Enables/disables the apt-proxy (just sets a flag)
* @param $version Version number of this apt-proxy
* @return void
*/
- function enableIsActive (bool $isActive = TRUE);
+ function enableIsActive (bool $isActive = TRUE): void;
/**
* Determines whether the apt-proxy is active
*
* @return $isActive Whether the apt-proxy is active
*/
- function isActive ();
+ function isActive (): bool;
}
*
* @return void
*/
- function doBootstrapping ();
+ function doBootstrapping (): void;
/**
* Outputs the console teaser. This should only be executed on startup or
*
* @return void
*/
- function outputConsoleTeaser ();
+ function outputConsoleTeaser (): void;
/**
* Add some chatter-specific filters
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+ function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
/**
* Enables/disables the chatter (just sets a flag)
* @param $version Version number of this chatter
* @return void
*/
- function enableIsActive (bool $isActive = TRUE);
+ function enableIsActive (bool $isActive = TRUE): void;
/**
* Determines whether the chatter is active
*
* @return $isActive Whether the chatter is active
*/
- function isActive ();
+ function isActive (): bool;
}
*
* @return void
*/
- function doBootstrapping ();
+ function doBootstrapping (): void;
/**
* Outputs the console teaser. This should only be executed on startup or
*
* @return void
*/
- function outputConsoleTeaser ();
+ function outputConsoleTeaser (): void;
/**
* Add some crawler-specific filters
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+ function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
/**
* Enables/disables the crawler (just sets a flag)
* @param $version Version number of this crawler
* @return void
*/
- function enableIsActive (bool $isActive = TRUE);
+ function enableIsActive (bool $isActive = TRUE): void;
/**
* Determines whether the crawler is active
*
* @return $isActive Whether the crawler is active
*/
- function isActive ();
+ function isActive (): bool;
/**
* Initializes this crawler instance
* @param $stateInstance An instance of a Stateable class
* @return void
*/
- function initCrawler (Stateable $stateInstance);
+ function initCrawler (Stateable $stateInstance): void;
/**
* Setter for state instance
* @param $stateInstance A Stateable instance
* @return void
*/
- function setStateInstance (Stateable $stateInstance);
+ function setStateInstance (Stateable $stateInstance): void;
/**
* Getter for state instance
*
* @return $stateInstance A Stateable instance
*/
- function getStateInstance ();
+ function getStateInstance (): Stateable;
}
*
* @return void
*/
- function doBootstrapping ();
+ function doBootstrapping (): void;
/**
* This method determines if the in-buffer is going to depleted and if so,
*
* @return void
*/
- function doFetchWorkUnits ();
+ function doFetchWorkUnits (): void;
/**
* Outputs the console teaser. This should only be executed on startup or
*
* @return void
*/
- function outputConsoleTeaser ();
+ function outputConsoleTeaser (): void;
/**
* Add some cruncher-specific filters
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+ function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
/**
* Enables/disables the cruncher (just sets a flag)
* @param $version Version number of this cruncher
* @return void
*/
- function enableIsActive (bool $isActive = TRUE);
+ function enableIsActive (bool $isActive = TRUE): void;
/**
* Determines whether the cruncher is active
*
* @return $isActive Whether the cruncher is active
*/
- function isActive ();
+ function isActive (): bool;
/**
* Initializes all buffer queues (mostly in/out)
*
* @return void
*/
- function initBufferQueues ();
+ function initBufferQueues (): void;
}
*
* @return void
*/
- function doBootstrapping ();
+ function doBootstrapping (): void;
/**
* This method determines if the in-buffer is going to depleted and if so,
*
* @return void
*/
- function doFetchWorkUnits ();
+ function doFetchWorkUnits (): void;
/**
* Outputs the console teaser. This should only be executed on startup or
*
* @return void
*/
- function outputConsoleTeaser ();
+ function outputConsoleTeaser (): void;
/**
* Add some miner-specific filters
* @param $responseInstance An object of a Responseable instance
* @return void
*/
- function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+ function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
/**
* Enables/disables the miner (just sets a flag)
* @param $version Version number of this miner
* @return void
*/
- function enableIsActive (bool $isActive = TRUE);
+ function enableIsActive (bool $isActive = TRUE): void;
/**
* Determines whether the miner is active
*
* @return $isActive Whether the miner is active
*/
- function isActive ();
+ function isActive (): bool;
/**
* Initializes all buffer queues (mostly in/out)
*
* @return void
*/
- function initBufferQueues ();
+ function initBufferQueues (): void;
/**
* Changes the state to 'booting' and shall be called after the block
* @param $producerInstance An instance of a BlockProducer class
* @return void
*/
- function blockProducerHasInitialized (BlockProducer $producerInstance);
+ function blockProducerHasInitialized (BlockProducer $producerInstance): void;
/**
* Setter for state instance
* @param $stateInstance A Stateable instance
* @return void
*/
- function setStateInstance (Stateable $stateInstance);
+ function setStateInstance (Stateable $stateInstance): void;
/**
* Getter for state instance
*
* @return $stateInstance A Stateable instance
*/
- function getStateInstance ();
+ function getStateInstance (): Stateable;
}
-Subproject commit ba75c20fcc3cc172de195703b3220168d97912fd
+Subproject commit bad914c43d90fedcdc9dad902157c1ebb70e7ec6