<?php
namespace Property;

require_once 'Object.php';
require_once 'House.php';
require_once 'Kitchen.php';
require_once 'Door.php';
require_once 'Window.php';

use \Main\Object;	
use \Property\Kitchen;
use \Property\Door;
use \Property\Window;

class HouseBuilder extends Object
{
	// Attributes
	
	// Constructor
	public function __construct()
	{
	}
	
	// Methods for the properties
	// Getters and Setters
	
	// Methods
	public function Build()
	{		
		// The HouseBuilder class hides the construction details
		// of the House class, from the application. .
		$door = new Door();
		$windows = [ new Window(), new Window() ];
		$kitchen = new Kitchen($door, $windows);
		
		return new House($kitchen);
	}		
}
?>