<?php
namespace Main\CompositePattern;

use \Iterator;
use \SplStack;

/*
 * Using the Standard PHP Library (SPL) class Iterator
 */

// NOTE:
// We only include this so that a user of our Worker/WorkGroups
// doesn't have to test null if they attempt to use
// an Iterator on a Worker class.
class NullWorkGroupIterator implements Iterator
{
	// Attributes
	
	// Constructor
	
	public function __construct()
	{		
	}
	
	// Methods for properties
	// Getters and Setters
	
	// Methods
	public function current()
	{
		return null;
	}
	
	public function key()
	{
		return null;	
	}
	
	public function next()
	{
		return;
	}
	
	public function rewind()
	{
	}
	
	public function valid()
	{
		return false;
	}
}
?>