how to access variable of a method
<p>I have this class and I want to get the values in second method <code>runSecond</code> from <code>Gettest</code> method. How would I do that?</p>

<pre><code> class Test {
    public static function Gettest($x, $y, $z){
        $x = $x;
        $x = $x . basename($y);

        self::runSecond();  
    }

    private function runSecond(){
        //how do I access $x here? I need to know the value of $x, $y and $z here 
        // and I dont want to pass it like this  self::runSecond($x, $y, $z)
    }
 }
</code></pre>
