I'm reading a code and it consists of the following line
$this->controlador = new HomeController();
$this->controlador = new $this->controlador( $this->parametros )
My question is as follows, if this code is true and what it means because I had never heard of which objects can be instantiated
class HomeController extends MainController
{
/**
* Carrega a página "/views/home/home-view.php"
*/
public function index() {
// Título da página
$this->title = 'Home';
// Parametros da função
$parametros = ( func_num_args() >= 1 ) ? func_get_arg(0) : array();