Location: PHPKode > projects > Spiral > ametaireau-spiral-272a2b1/framework/di/tests/fixtures/Collection.php
<?php

namespace spiral\framework\di\fixtures;

/**
 * Represent a collection of elements.
 * 
 * @author	Frédéric Sureau <hide@address.com>
 */
class Collection
{
	public $elements = array();

	public function setElement($key, $value)
	{
		$this->elements[$key] = $value;
	}
	
	public function getElement($key)
	{
		return $this->elements[$key];
	}
	
	public function __set($key, $value)
	{
		$this->setElement($key, $value);
	}
	
	public function __get($key)
	{
		return $this->getElement($key);
	}
}
Return current item: Spiral