<?php
require_once 'Employee.php';
class Employees implements IteratorAggregate
{
private $_employees;
public function __construct()
{
$this->_employees = new ArrayObject();
}
public function add(Employee $employee)
{
$this->_employees[] = $employee;
}
public function getIterator()
{
return $this->_employees->getIterator();
}
}