Ben bu sınıf var ve ben Gettest
yönteminden ikinci yöntemde değerleri runSecond
almak istiyorum. Bunu nasıl yaparım?
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)
}
}