I have classes 1, 2a and 2b, where 1 is the main class, while 2a and 2b extends class 1. Is it possible through class 2a to access values from class 2b directly or through the parent class?
Basic example:
class system{
}
class modulos extends system{
function __construct(){
$exemple = controllers::exemple();
}
}
class controllers extends system{
public function exemple(){
return true;
}
}
$system = new system();