-1
It would be possible to "inherit" imports, use of a class? Example
Car.php
<?php
namespace app\model;
use app\Utils;
use app\Banco;
class Carro{}
main.php
<?php
namespace app\model;
use app\Carro;
class Main{
$banco= new Banco();
}
Is there any way that this could be possible? Since class Car already have a use to "Bank".
Not,
use
no matter the class. If you need to use it again, there are no plausible reasons not to use theuse
again.– Woss