namespace X {
class X {
public function __construct() {
}
}
namespace Y {
new X\X();
}
How to check in constructor of X what is the namespace of expression new X()? Only debug_backtrace and parsing file?
namespace X {
class X {
public function __construct() {
}
}
namespace Y {
new X\X();
}
How to check in constructor of X what is the namespace of expression new X()? Only debug_backtrace and parsing file?