*
* @return $thisInstance An instance of this class
*/
- public final static function getInstance () {
+ public static final function getInstance () {
// Is the instance there?
if (is_null(self::$thisInstance)) {
self::$thisInstance = new ApplicationHelper();
* @param $resolverInstance An instance of a command resolver class
* @return $commandInstance An instance a prepared command class
*/
- public final static function createHubConsoleMainCommand (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleMainCommand (CommandResolver $resolverInstance) {
// Get new instance
$commandInstance = new HubConsoleMainCommand();
* @return $innerCompressorInstance The inner Compressor class
* @return $compressorInstance An instance of a Compressor class
*/
- public final static function createNetworkPackageCompressorDecorator (Compressor $innerCompressorInstance) {
+ public static final function createNetworkPackageCompressorDecorator (Compressor $innerCompressorInstance) {
// Get new instance
$compressorInstance = new NetworkPackageCompressorDecorator();
* @param $nodeInstance An instance of a node
* @return $connectorInstance An instance of this query connector class
*/
- public final static function createLocalQueryConnector (NodeHelper $nodeInstance) {
+ public static final function createLocalQueryConnector (NodeHelper $nodeInstance) {
// Create the instance
$connectorInstance = new LocalQueryConnector();
* @param $nodeInstance An instance of a hub node
* @return $connectorInstance An instance of this queue connector class
*/
- public final static function createLocalQueueConnector (NodeHelper $nodeInstance) {
+ public static final function createLocalQueueConnector (NodeHelper $nodeInstance) {
// Create the instance
$connectorInstance = new LocalQueueConnector();
* @param $resolverInstance An instance of a command resolver class
* @return $controllerInstance A prepared instance of this class
*/
- public final static function createHubConsoleDefaultNewsController (CommandResolver $resolverInstance) {
+ public static final function createHubConsoleDefaultNewsController (CommandResolver $resolverInstance) {
// Create the instance
$controllerInstance = new HubConsoleDefaultNewsController();
*
* @return $wrapperInstance An instance of the created wrapper class
*/
- public final static function createNodeInformationDatabaseWrapper () {
+ public static final function createNodeInformationDatabaseWrapper () {
// Get a new instance
$wrapperInstance = new NodeInformationDatabaseWrapper();
*
* @return $wrapperInstance An instance of the created wrapper class
*/
- public final static function createNodeListDatabaseWrapper () {
+ public static final function createNodeListDatabaseWrapper () {
// Get a new instance
$wrapperInstance = new NodeListDatabaseWrapper();
*
* @return $wrapperInstance An instance of the created wrapper class
*/
- public final static function createPeerStateLookupDatabaseWrapper () {
+ public static final function createPeerStateLookupDatabaseWrapper () {
// Get a new instance
$wrapperInstance = new PeerStateLookupDatabaseWrapper();
*
* @return $discoveryInstance An instance of this discovery class
*/
- public final static function createPackageRecipientDiscovery () {
+ public static final function createPackageRecipientDiscovery () {
// Get an instance of this class
$discoveryInstance = new PackageRecipientDiscovery();
*
* @return $discoveryInstance An instance of this discovery class
*/
- public final static function createPackageSocketDiscovery () {
+ public static final function createPackageSocketDiscovery () {
// Get an instance of this class
$discoveryInstance = new PackageSocketDiscovery();
*
* @return $tableInstance An instance of a lookup table
*/
- public final static function getTableInstance () {
+ public static final function getTableInstance () {
// Is the instance null?
if (is_null(self::$tableInstance)) {
// Get a new one
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubActivationSelfAnnouncementFilter () {
+ public static final function createHubActivationSelfAnnouncementFilter () {
// Get a new instance
$filterInstance = new HubActivationSelfAnnouncementFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubBootstrapExtraBootstrappingFilter () {
+ public static final function createHubBootstrapExtraBootstrappingFilter () {
// Get a new instance
$filterInstance = new HubBootstrapExtraBootstrappingFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubBootstrapGenerateHubIdFilter () {
+ public static final function createHubBootstrapGenerateHubIdFilter () {
// Get a new instance
$filterInstance = new HubBootstrapGenerateHubIdFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubBootstrapGenerateSessionIdFilter () {
+ public static final function createHubBootstrapGenerateSessionIdFilter () {
// Get a new instance
$filterInstance = new HubBootstrapGenerateSessionIdFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubBootstrapInitQueuesFilter () {
+ public static final function createHubBootstrapInitQueuesFilter () {
// Get a new instance
$filterInstance = new HubBootstrapInitQueuesFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubBootstrapListenerPoolFilter () {
+ public static final function createHubBootstrapListenerPoolFilter () {
// Get a new instance
$filterInstance = new HubBootstrapListenerPoolFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubBootstrapRestoreNodeListFilter () {
+ public static final function createHubBootstrapRestoreNodeListFilter () {
// Get a new instance
$filterInstance = new HubBootstrapRestoreNodeListFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createConsoleWelcomeTeaserFilter () {
+ public static final function createConsoleWelcomeTeaserFilter () {
// Get a new instance
$filterInstance = new ConsoleWelcomeTeaserFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createNodeInitializationFilter () {
+ public static final function createNodeInitializationFilter () {
// Get a new instance
$filterInstance = new NodeInitializationFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createNodePhpRequirementsFilter () {
+ public static final function createNodePhpRequirementsFilter () {
// Get a new instance
$filterInstance = new NodePhpRequirementsFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubShutdownDeinitQueuesFilter () {
+ public static final function createHubShutdownDeinitQueuesFilter () {
// Get a new instance
$filterInstance = new HubShutdownDeinitQueuesFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubShutdownFlushNodeListFilter () {
+ public static final function createHubShutdownFlushNodeListFilter () {
// Get a new instance
$filterInstance = new HubShutdownFlushNodeListFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubShutdownNodeFilter () {
+ public static final function createHubShutdownNodeFilter () {
// Get a new instance
$filterInstance = new HubShutdownNodeFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createHubShutdownTaskHandlerFilter () {
+ public static final function createHubShutdownTaskHandlerFilter () {
// Get a new instance
$filterInstance = new HubShutdownTaskHandlerFilter();
*
* @return $filterInstance An instance of this filter class
*/
- public final static function createTaskHandlerInitializerFilter () {
+ public static final function createTaskHandlerInitializerFilter () {
// Get a new instance
$filterInstance = new TaskHandlerInitializerFilter();
*
* @return $handlerInstance An instance of a Networkable class
*/
- public final static function createTcpNetworkPackageHandler () {
+ public static final function createTcpNetworkPackageHandler () {
// Get new instance
$handlerInstance = new TcpNetworkPackageHandler();
*
* @return $handlerInstance An instance of a Networkable class
*/
- public final static function createUdpNetworkPackageHandler () {
+ public static final function createUdpNetworkPackageHandler () {
// Get new instance
$handlerInstance = new UdpNetworkPackageHandler();
*
* @return $handlerInstance An instance of a HandleableTask class
*/
- public final static function createTaskHandler () {
+ public static final function createTaskHandler () {
// Get new instance
$handlerInstance = new TaskHandler();
// Shutdown all tasks in once go
while ($this->getIteratorInstance()->valid()) {
// Get current entry
- $current = $this->getIteratorInstance()->current();
+ $currentTask = $this->getIteratorInstance()->current();
// Output debug message
- $this->debugOutput('TASK-HANDLER: Shutting down task ' . $current['id'] . ' (taskInstance=' . $current['task_instance']->__toString() . ') ...');
+ $this->debugOutput('TASK-HANDLER: Shutting down task ' . $currentTask['id'] . ' (taskInstance=' . $currentTask['task_instance']->__toString() . ') ...');
// Shutdown the task
- $current['task_instance']->accept($this->visitorInstance);
+ $currentTask['task_instance']->accept($this->visitorInstance);
// Remember this task
- $tasks[] = $current;
+ $tasks[] = $currentTask;
// Advance to next one
$this->getIteratorInstance()->next();
* @param $nodeInstance An instance of a NodeHelper class
* @return $helperInstance A prepared instance of this helper
*/
- public final static function createHubDescriptorHelper (NodeHelper $nodeInstance) {
+ public static final function createHubDescriptorHelper (NodeHelper $nodeInstance) {
// Get new instance
$helperInstance = new HubDescriptorHelper();
* @param $nodeInstance An instance of a NodeHelper class
* @return $helperInstance A prepared instance of this helper
*/
- public final static function createHubSelfConnectHelper (NodeHelper $nodeInstance) {
+ public static final function createHubSelfConnectHelper (NodeHelper $nodeInstance) {
// Get new instance
$helperInstance = new HubSelfConnectHelper();
*
* @return $iteratorInstance An instance of a Iterator class
*/
- public final static function createHubPingIterator () {
+ public static final function createHubPingIterator () {
// Get new instance
$iteratorInstance = new HubPingIterator();
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public final static function createNetworkListenIterator (Listable $listInstance) {
+ public static final function createNetworkListenIterator (Listable $listInstance) {
// Get new instance
$iteratorInstance = new NetworkListenIterator();
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public final static function createDefaultIterator (Listable $listInstance) {
+ public static final function createDefaultIterator (Listable $listInstance) {
// Get new instance
$iteratorInstance = new DefaultIterator();
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public final static function createHandlerPoolIterator (Listable $listInstance) {
+ public static final function createHandlerPoolIterator (Listable $listInstance) {
// Get new instance
$iteratorInstance = new HandlerPoolIterator();
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public final static function createShutdownPoolIterator (Listable $listInstance) {
+ public static final function createShutdownPoolIterator (Listable $listInstance) {
// Get new instance
$iteratorInstance = new ShutdownPoolIterator();
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public final static function createTaskPoolIterator (Listable $listInstance) {
+ public static final function createTaskPoolIterator (Listable $listInstance) {
// Get new instance
$iteratorInstance = new TaskPoolIterator();
* @param $nodeInstance A NodeHelper instance
* @return $listenerInstance An instance a prepared listener class
*/
- public final static function createTcpListener (NodeHelper $nodeInstance) {
+ public static final function createTcpListener (NodeHelper $nodeInstance) {
// Get new instance
$listenerInstance = new TcpListener();
* "Listens" for incoming network packages
*
* @return void
+ * @throws InvalidSocketException If an invalid socket resource has been found
*/
public function doListen () {
// Get all readers
// Shutdown this socket
$this->shutdownSocket($newSocket);
- // And throw again
+ // And throw the exception
throw new InvalidSocketException(array($this, gettype($newSocket), $socketError, $errorMessage), BaseListener::EXCEPTION_INVALID_SOCKET);
} // END - if
} // END - if
// Get the current value
- $current = $this->getIteratorInstance()->current();
+ $currentSocket = $this->getIteratorInstance()->current();
// Handle it here, if not main socket
- if ($current != $this->getSocketResource()) {
+ if ($currentSocket != $this->getSocketResource()) {
// ... or else it will raise warnings like 'Transport endpoint is not connected'
- $this->getPackageInstance()->processResourcePackage($current);
+ $this->getPackageInstance()->processResourcePackage($currentSocket);
} // END - if
// Advance to next entry. This should be the last line
* @param $listenerInstance A Listener instance
* @return $decoratorInstance An instance a prepared listener decorator class
*/
- public final static function createHubTcpListenerDecorator (Listenable $listenerInstance) {
+ public static final function createHubTcpListenerDecorator (Listenable $listenerInstance) {
// Get new instance
$decoratorInstance = new HubTcpListenerDecorator();
* @param $listenerInstance A Listener instance
* @return $decoratorInstance An instance a prepared listener decorator class
*/
- public final static function createPeerTcpListenerDecorator (Listenable $listenerInstance) {
+ public static final function createPeerTcpListenerDecorator (Listenable $listenerInstance) {
// Get new instance
$decoratorInstance = new PeerTcpListenerDecorator();
*
* @return void
*/
- public function initListener() {
+ public function initListener () {
$this->partialStub('WARNING: This method should not be called.');
}
*
* @return void
*/
- public function doListen() {
+ public function doListen () {
// Handle generic TCP package
$this->getListenerInstance()->doListen();
* @param $nodeInstance A NodeHelper instance
* @return $listenerInstance An instance a prepared listener class
*/
- public final static function createUdpListener (NodeHelper $nodeInstance) {
+ public static final function createUdpListener (NodeHelper $nodeInstance) {
// Get new instance
$listenerInstance = new UdpListener();
* @param $listenerInstance A Listener instance
* @return $decoratorInstance An instance a prepared listener decorator class
*/
- public final static function createHubUdpListenerDecorator (Listenable $listenerInstance) {
+ public static final function createHubUdpListenerDecorator (Listenable $listenerInstance) {
// Get new instance
$decoratorInstance = new HubUdpListenerDecorator();
*
* @return void
*/
- public function initListener() {
+ public function initListener () {
$this->partialStub('WARNING: This method should not be called.');
}
*
* @return void
*/
- public function doListen() {
+ public function doListen () {
// Handle generic UDP package first
$this->getListenerInstance()->doListen();
* @param $listenerInstance A Listener instance
* @return $decoratorInstance An instance a prepared listener decorator class
*/
- public final static function createPeerUdpListenerDecorator (Listenable $listenerInstance) {
+ public static final function createPeerUdpListenerDecorator (Listenable $listenerInstance) {
// Get new instance
$decoratorInstance = new PeerUdpListenerDecorator();
*
* @return void
*/
- public function initListener() {
+ public function initListener () {
$this->partialStub('WARNING: This method should not be called.');
}
*
* @return void
*/
- public function doListen() {
+ public function doListen () {
// Handle generic UDP packages first
$this->getListenerInstance()->doListen();
*
* @return $listInstance An instance a Listable class
*/
- public final static function createListGroupList () {
+ public static final function createListGroupList () {
// Get new instance
$listInstance = new ListGroupList();
*
* @return $listInstance An instance a Listable class
*/
- public final static function createHubList () {
+ public static final function createHubList () {
// Get new instance
$listInstance = new HubList();
*
* @return $listInstance An instance a Listable class
*/
- public final static function createPoolEntriesList () {
+ public static final function createPoolEntriesList () {
// Get new instance
$listInstance = new PoolEntriesList();
*
* @return $listInstance An instance a Listable class
*/
- public final static function createLocalQueryList () {
+ public static final function createLocalQueryList () {
// Get new instance
$listInstance = new LocalQueryList();
*
* @return $listInstance An instance a Listable class
*/
- public final static function createRecipientList () {
+ public static final function createRecipientList () {
// Get new instance
$listInstance = new RecipientList();
*
* @return $listInstance An instance a Listable class
*/
- public final static function createTaskList () {
+ public static final function createTaskList () {
// Get new instance
$listInstance = new TaskList();
*
* @return $tableInstance An instance of a Lookupable class
*/
- public final static function createPeerStateLookupTable () {
+ public static final function createPeerStateLookupTable () {
// Get new instance
$tableInstance = new PeerStateLookupTable();
* @param $requestInstance An instance of a Requestable class
* @return $nodeInstance An instance of this hub-node class
*/
- public final static function createHubBootNode (Requestable $requestInstance) {
+ public static final function createHubBootNode (Requestable $requestInstance) {
// Get a new instance
$nodeInstance = new HubBootNode();
* @param $requestInstance An instance of a Requestable class
* @return $nodeInstance An instance of this hub-node class
*/
- public final static function createHubListNode (Requestable $requestInstance) {
+ public static final function createHubListNode (Requestable $requestInstance) {
// Get a new instance
$nodeInstance = new HubListNode();
* @param $requestInstance An instance of a Requestable class
* @return $nodeInstance An instance of this hub-node class
*/
- public final static function createHubMasterNode (Requestable $requestInstance) {
+ public static final function createHubMasterNode (Requestable $requestInstance) {
// Get a new instance
$nodeInstance = new HubMasterNode();
* @param $requestInstance An instance of a Requestable class
* @return $nodeInstance An instance of this hub-node class
*/
- public final static function createHubRegularNode (Requestable $requestInstance) {
+ public static final function createHubRegularNode (Requestable $requestInstance) {
// Get a new instance
$nodeInstance = new HubRegularNode();
* @param $compressorInstance A Compressor instance for compressing the content
* @return $packageInstance An instance of a Deliverable class
*/
- public final static function createNetworkPackage (Compressor $compressorInstance) {
+ public static final function createNetworkPackage (Compressor $compressorInstance) {
// Get new instance
$packageInstance = new NetworkPackage();
*
* @return $fragmenterInstance An instance of a Fragmentable class
*/
- public final static function createPackageFragmenter () {
+ public static final function createPackageFragmenter () {
// Get new instance
$fragmenterInstance = new PackageFragmenter();
* @param $nodeInstance A NodeHelper instance
* @return $listenerInstance An instance a prepared listener class
*/
- public final static function createDefaultListenerPool (NodeHelper $nodeInstance) {
+ public static final function createDefaultListenerPool (NodeHelper $nodeInstance) {
// Get new instance
$listenerInstance = new DefaultListenerPool();
* @param $listenerInstance A Listenable instance
* @return $poolInstance An instance a Poolable class
*/
- public final static function createDefaultPeerPool (Listenable $listenerInstance) {
+ public static final function createDefaultPeerPool (Listenable $listenerInstance) {
// Get new instance
$poolInstance = new DefaultPeerPool();
*
* @return $queryInstance An instance of a Queryable class
*/
- public final static function createLocalQuery () {
+ public static final function createLocalQuery () {
// Get new instance
$queryInstance = new LocalQuery();
*
* @return $poolInstance An instance a Queueable class
*/
- public final static function createLocalPeerQueue () {
+ public static final function createLocalPeerQueue () {
// Get new instance
$poolInstance = new LocalPeerQueue();
*
* @return $registryInstance Instance of this class
*/
- public final static function createObjectTypeRegistry () {
+ public static final function createObjectTypeRegistry () {
// Is an instance there?
if (is_null(self::$registryInstance)) {
// Not yet, so create one
*
* @return $registryInstance An instance of this class
*/
- public final static function createSocketRegistry () {
+ public static final function createSocketRegistry () {
// Is an instance there?
if (is_null(self::$registryInstance)) {
// Not yet, so create one
* @throws EmptyVariableException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public final static function createHubConsoleCommandResolver ($commandName, ManageableApplication $appInstance) {
+ public static final function createHubConsoleCommandResolver ($commandName, ManageableApplication $appInstance) {
// Create the new instance
$resolverInstance = new HubConsoleCommandResolver();
* @throws EmptyVariableException Thrown if default command is not set
* @throws InvalidControllerException Thrown if default controller is invalid
*/
- public final static function createHubConsoleControllerResolver ($controllerName, ManageableApplication $appInstance) {
+ public static final function createHubConsoleControllerResolver ($controllerName, ManageableApplication $appInstance) {
// Create the new instance
$resolverInstance = new HubConsoleControllerResolver();
*
* @return $resolverInstance The prepared state resolver instance
*/
- public final static function createNetworkStateResolver () {
+ public static final function createNetworkStateResolver () {
// Create the new instance
$resolverInstance = new NetworkStateResolver();
* @param $nodeInstance An instance of a NodeHelper class
* @return $stateInstance An instance of a Stateable class
*/
- public final static function createNodeActiveState (NodeHelper $nodeInstance) {
+ public static final function createNodeActiveState (NodeHelper $nodeInstance) {
// Get new instance
$stateInstance = new NodeActiveState();
* @param $nodeInstance An instance of a NodeHelper class
* @return $stateInstance An instance of a Stateable class
*/
- public final static function createNodeAnnouncedState (NodeHelper $nodeInstance) {
+ public static final function createNodeAnnouncedState (NodeHelper $nodeInstance) {
// Get new instance
$stateInstance = new NodeAnnouncedState();
* @param $nodeInstance An instance of a NodeHelper class
* @return $stateInstance An instance of a Stateable class
*/
- public final static function createNodeInitState (NodeHelper $nodeInstance) {
+ public static final function createNodeInitState (NodeHelper $nodeInstance) {
// Get new instance
$stateInstance = new NodeInitState();
* @param $nodeInstance An instance of a NodeHelper class
* @return $stateInstance An instance of a Stateable class
*/
- public final static function createNodeVirginState (NodeHelper $nodeInstance) {
+ public static final function createNodeVirginState (NodeHelper $nodeInstance) {
// Get new instance
$stateInstance = new NodeVirginState();
*
* @return $stateInstance An instance of a PeerStateable class
*/
- public final static function createNewConnectionPeerState () {
+ public static final function createNewConnectionPeerState () {
// Get new instance
$stateInstance = new NewConnectionPeerState();
*
* @return $tagsInstance An instance of a Tagable class
*/
- public final static function createPackageTags () {
+ public static final function createPackageTags () {
// Get new instance
$tagsInstance = new PackageTags();
*
* @return $taskInstance An instance of a Visitable class
*/
- public final static function createHubSelfAnnouncementTask () {
+ public static final function createHubSelfAnnouncementTask () {
// Get new instance
$taskInstance = new HubSelfAnnouncementTask();
*
* @return $taskInstance An instance of a Visitable class
*/
- public final static function createHubSelfConnectTask () {
+ public static final function createHubSelfConnectTask () {
// Get new instance
$taskInstance = new HubSelfConnectTask();
* @param $listInstance A Listable instance
* @return $taskInstance An instance of a Visitable class
*/
- public final static function createHubPingTask (Listable $listInstance) {
+ public static final function createHubPingTask (Listable $listInstance) {
// Get new instance
$taskInstance = new HubPingTask();
*
* @return $taskInstance An instance of a Visitable class
*/
- public final static function createHubUpdateCheckTask () {
+ public static final function createHubUpdateCheckTask () {
// Get new instance
$taskInstance = new HubUpdateCheckTask();
*
* @return $taskInstance An instance of a Visitable class
*/
- public final static function createIdleLoopTask () {
+ public static final function createIdleLoopTask () {
// Get new instance
$taskInstance = new IdleLoopTask();
*
* @return $taskInstance An instance of a Visitable class
*/
- public final static function createNetworkPackageWriterTask () {
+ public static final function createNetworkPackageWriterTask () {
// Get new instance
$taskInstance = new NetworkPackageWriterTask();
* @throws BasePathReadProtectedException If $templateBasePath is
* read-protected
*/
- public final static function createAnnouncementTemplateEngine (ManageableApplication $appInstance) {
+ public static final function createAnnouncementTemplateEngine (ManageableApplication $appInstance) {
// Get a new instance
$templateInstance = new AnnouncementTemplateEngine();
* @throws BasePathReadProtectedException If $templateBasePath is
* read-protected
*/
- public final static function createSelfConnectTemplateEngine (ManageableApplication $appInstance) {
+ public static final function createSelfConnectTemplateEngine (ManageableApplication $appInstance) {
// Get a new instance
$templateInstance = new SelfConnectTemplateEngine();
* @throws BasePathReadProtectedException If $templateBasePath is
* read-protected
*/
- public final static function createObjectRegistryTemplateEngine (ManageableApplication $appInstance) {
+ public static final function createObjectRegistryTemplateEngine (ManageableApplication $appInstance) {
// Get a new instance
$templateInstance = new ObjectRegistryTemplateEngine();
*
* @retuen $selfInstance An instance of this class
*/
- public final static function getInstance () {
+ public static final function getInstance () {
// Is the instance set
if (is_null(self::$selfInstance)) {
// Then set it
*
* @return $visitorInstance An instance a Visitorable class
*/
- public final static function createShutdownListenerPoolVisitor () {
+ public static final function createShutdownListenerPoolVisitor () {
// Get new instance
$visitorInstance = new ShutdownListenerPoolVisitor();
*
* @return $visitorInstance An instance a Visitorable class
*/
- public final static function createShutdownSocketVisitor () {
+ public static final function createShutdownSocketVisitor () {
// Get new instance
$visitorInstance = new ShutdownSocketVisitor();
/**
* Creates an instance of this class
*
- * @return $visitorInstance An instance a Visitorable class
+ * @return $visitorInstance An instance a Visitorable class
*/
- public final static function createActiveTaskVisitor () {
+ public static final function createActiveTaskVisitor () {
// Get new instance
$visitorInstance = new ActiveTaskVisitor();
*
* @return $visitorInstance An instance a Visitorable class
*/
- public final static function createShutdownTaskVisitor () {
+ public static final function createShutdownTaskVisitor () {
// Get new instance
$visitorInstance = new ShutdownTaskVisitor();