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

namespace spiral\framework\di\fixtures;

/**
 * Represent a store register as static class. 
 * 
 * This exemple is only there for test purpose, this kind of design should not be 
 * implemented because of evil direct dependencies.
 * 
 * @author	Frédéric Sureau <hide@address.com>
 */
class StoreRegister
{
	public static $stores = array();
	
	public static function register(Store $store)
	{
		self::$stores[] = $store;
	}
}
Return current item: Spiral