operator override like .net in php classes
<p>I have one class with multiple numeric values and functionality 
(for some kind of count category etc.)</p>

<pre><code>class mBasicClass
{
    public $typ01Value = 0;
    public $typ02Value = 0;
}
</code></pre>

<p>I also have some other classes which are actually group of these classes </p>

<pre><code>class mClass
{
    public $vjA = new mBasicClass();
    public $ntB = new mBasicClass();
    public $ntC = new mBasicClass();
    public $ntD = new mBasicClass();
}
</code></pre>

<p>All I want to know - is there any way to write operator override like .net in php classes</p>

<p>so that I can use </p>

<pre><code>$vjA + $ntB 
</code></pre>

<p>Which actually is</p>

<pre><code>$vjA-&gt;$typ01Value + $ntB -&gt;$typ01Value
$vjA-&gt;$typ02Value + $ntB -&gt;$typ02Value
</code></pre>
