title: How to acess multiple classes through one parent class in PHP
body: <p>Lets say I have a class called <code>PageBuilder</code> which I instantiate, send parameters to and call functions from through my <code>index</code> file (which acts as a front controller). There are three sub classes associated with the <code>PageBuilder</code> class: <code>Head</code>, <code>Body</code> and <code>Foot</code>, that are accessed by <code>PageBuilder</code> which basically abstracts them for <code>index</code>. </p>
  
  <p>So in theory you could instantiate <code>PageBuilder</code> and have full access to the other classes as if they were part of <code>PageBuilder</code>.</p>
  
  <p>How can I implement a design like this in PHP5 using any combination of classes, abstract classes and interfaces?</p>
  
  <p>I don't think the above is possible with PHP5, not necessarily because PHP has its limitations but maybe because I am going about the design of my application the wrong way.</p>
  
  <p>Common examples of OOP in PHP don't suffice to help me understand how to structure a more complex design.</p>
  
  <p>Thanks.</p>