title: class initiation with php
body: <p>I have a class which initiates another class, i'm not concerned with having a reference to the object i only need the method and have to pass in new parameters.</p>
  
  <pre><code>class A {
       __set .....
  }
  
  class B extends A {
       $anotherA = new A;
       $anotherA-&gt;myName = 'stackoverflow';
  }
  </code></pre>
  
  <p>in short i'd like to have class B extend A, init a new instance of A but i don't want to have to type "new" everytime, i've seen the following syntax:</p>
  
  <pre><code>B::A // something like that
  </code></pre>
  
  <p>but not sure if how to use it or if that would do what i'm trying to do?</p>