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

/**
 * Represent an album.
 * 
 * @author	Frédéric Sureau <hide@address.com>
 */
class Album
{
	public $name = null;
	public $year = null;
	public $support = null;
	public $songs = array();
	
	public function __construct($name, $year, $support)
	{
		$this->name = $name;
		$this->year = $year;
		$this->support = $support;
	}
	
	public function addSong(array $songInformation)
	{
		$this->songs[] = $songInformation;
	}
	
	public function setSongs(array $songsInformation)
	{
		$this->songs = $songsInformation;
	}
}
Return current item: Spiral