* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public static final function createNetworkListenIterator (Listable $listInstance) {
+ public static final function createNetworkListenIterator (Listable $listInstance): NetworkListenIterator {
// Get new instance
$iteratorInstance = new NetworkListenIterator();
* @return $current Current value in iteration
* @throws IndexOutOfBoundsException If $indexKey is out of bounds
*/
- public function current () {
+ public function current (): mixed {
// Default is null
$current = NULL;
*
* @return $indexKey Current key in iteration
*/
- public function key () {
+ public function key (): int {
return $this->indexKey;
}
*
* @return void
*/
- public function next () {
+ public function next (): void {
$this->indexKey++;
}
*
* @return void
*/
- public function rewind () {
+ public function rewind (): void {
$this->indexKey = 0;
}
*
* @return $isValid Whether the current entry is there
*/
- public function valid () {
+ public function valid (): bool {
// Check for total active peers and if we are not at the end
$isValid = ($this->key() < $this->getListInstance()->count());
*
* @return $iteratorInstance An instance of a Iterator class
*/
- public static final function createNodePingIterator () {
+ public static final function createNodePingIterator (): NodePingIterator {
// Get new instance
$iteratorInstance = new NodePingIterator();
*
* @return $current Current value in iteration
*/
- public function current () {
+ public function current (): mixed {
// Default is null
$current = NULL;
*
* @return $key Current key in iteration
*/
- public function key () {
+ public function key (): int {
// Default is null
$key = NULL;
*
* @return void
*/
- public function next () {
+ public function next (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function rewind () {
+ public function rewind (): void {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
*
* @return void
*/
- public function valid () {
+ public function valid (): bool {
DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
}
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public static final function createHandlerPoolIterator (Listable $listInstance) {
+ public static final function createHandlerPoolIterator (Listable $listInstance): HandlerPoolIterator {
// Get new instance
$iteratorInstance = new HandlerPoolIterator();
* @return $current Current value in iteration
* @throws IndexOutOfBoundsException If $indexKey is out of bounds
*/
- public function current () {
+ public function current (): mixed {
// Default is null
$current = NULL;
*
* @return $indexKey Current key in iteration
*/
- public function key () {
+ public function key (): int {
return $this->indexKey;
}
*
* @return void
*/
- public function next () {
+ public function next (): void {
$this->indexKey++;
}
*
* @return void
*/
- public function rewind () {
+ public function rewind (): void {
$this->indexKey = 0;
}
*
* @return $isValid Whether the current entry is there
*/
- public function valid () {
+ public function valid (): bool {
// Check for total active peers and if we are not at the end
$isValid = ($this->key() < $this->getListInstance()->count());
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public static final function createMonitorPoolIterator (Listable $listInstance) {
+ public static final function createMonitorPoolIterator (Listable $listInstance): MonitorPoolIterator {
// Get new instance
$iteratorInstance = new MonitorPoolIterator();
* @return $current Current value in iteration
* @throws IndexOutOfBoundsException If $indexKey is out of bounds
*/
- public function current () {
+ public function current (): mixed {
// Default is null
$current = NULL;
*
* @return $indexKey Current key in iteration
*/
- public function key () {
+ public function key (): int {
return $this->indexKey;
}
*
* @return void
*/
- public function next () {
+ public function next (): void {
$this->indexKey++;
}
*
* @return void
*/
- public function rewind () {
+ public function rewind (): void {
$this->indexKey = 0;
}
*
* @return $isValid Whether the current entry is there
*/
- public function valid () {
+ public function valid (): bool {
// Check for total active peers and if we are not at the end
$isValid = ($this->key() < $this->getListInstance()->count());
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public static final function createShutdownPoolIterator (Listable $listInstance) {
+ public static final function createShutdownPoolIterator (Listable $listInstance): ShutdownPoolIterator {
// Get new instance
$iteratorInstance = new ShutdownPoolIterator();
* @return $current Current value in iteration
* @throws IndexOutOfBoundsException If $indexKey is out of bounds
*/
- public function current () {
+ public function current (): mixed {
// Default is null
$current = NULL;
*
* @return $indexKey Current key in iteration
*/
- public function key () {
+ public function key (): int {
return $this->indexKey;
}
*
* @return void
*/
- public function next () {
+ public function next (): void {
$this->indexKey++;
}
*
* @return void
*/
- public function rewind () {
+ public function rewind (): void {
$this->indexKey = 0;
}
*
* @return $isValid Whether the current entry is there
*/
- public function valid () {
+ public function valid (): bool {
// Check for total active peers and if we are not at the end
$isValid = ($this->key() < $this->getListInstance()->count());
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public static final function createTaskPoolIterator (Listable $listInstance) {
+ public static final function createTaskPoolIterator (Listable $listInstance): TaskPoolIterator {
// Get new instance
$iteratorInstance = new TaskPoolIterator();
* @return $current Current value in iteration
* @throws IndexOutOfBoundsException If $indexKey is out of bounds
*/
- public function current () {
+ public function current (): mixed {
// Default is null
$current = NULL;
*
* @return $indexKey Current key in iteration
*/
- public function key () {
+ public function key (): int {
return $this->indexKey;
}
*
* @return void
*/
- public function next () {
+ public function next (): void {
$this->indexKey++;
}
*
* @return void
*/
- public function rewind () {
+ public function rewind (): void {
$this->indexKey = 0;
}
*
* @return $isValid Whether the current entry is there
*/
- public function valid () {
+ public function valid (): bool {
// Check for total active peers and if we are not at the end
$isValid = ($this->key() < $this->getListInstance()->count());
*
* @return $iteratorInstance An instance of a Iterator class
*/
- public final static function createTestUnitKeyProducerIterator () {
+ public final static function createTestUnitKeyProducerIterator (): TestUnitKeyProducerIterator {
// Get new instance
$iteratorInstance = new TestUnitKeyProducerIterator();
*
* @return $current Current value in iteration
*/
- public function current () {
+ public function current (): mixed {
// Calculate ASCII string representation of the key number
$current = $this->dec2asc($this->currentIteration);
* @return $key Current key in iteration
* @throws UnsupportedOperationException This method should not be called
*/
- public function key () {
+ public function key (): int {
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
*
* @return void
*/
- public function next () {
+ public function next (): void {
/*
* This is of course a very ineffective key generation iterator because
* it will create a lot of keys that will never decode an encrypted
* @return void
* @throws UnsupportedOperationException This method should not be called
*/
- public function rewind () {
+ public function rewind (): void {
throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
}
*
* @return void
*/
- public function valid () {
+ public function valid (): bool {
return ($this->currentIteration <= $this->maxBits);
}
-Subproject commit 3ad2578dc223f97de06547be49d66e7adfea677c
+Subproject commit 76a44f7f1b907c63484c751f1fcf19730c553b7d