using $this or parent:: to call inherited methods?
<p>Not really a problem, more like curiosity on my part but as an example, say I have a php class:</p>

<pre><code>class baseTestMain
{
    protected function testFunction()
    {
        echo 'baseTestMain says hi';
    }
}
</code></pre>

<p>and another class that extends from that class above:</p>

<pre><code>class aSubClass extends baseTestMain
{
    public function doingSomething()
    {
        parent::testFunction();
        //someextrastuffhere
    }
}
</code></pre>

<p>Normally, when I want to call a parent method when defining a new method in the subclass I would do the above - <code>parent::methodnamehere()</code> however instead of <code>parent::</code> you can also use <code>$this-&gt;methodname()</code> and the operation would be the same.</p>

<pre><code>class aSubClass extends baseTestMain
{
    public function doingSomething()
    {
        $this-&gt;testFunction();
        //someextrastuffhere
    }
}
</code></pre>

<p>So what I'm asking is, should I use <code>parent::testFunction();</code> or use <code>$this-&gt;testFunction();</code> ? or is there a difference to it that I've missed? If not, whats your preference or the preferred method?</p>

<p>Do note that I am not overriding or extending that function in the subclass, essentially the implementation is carried over from the parent.</p>
