Fatal error: Uncaught Error: Call to a member function prepare() on string in /home/api/Model/Imobiliaria/Imobiliaria.php:48 Stack trace: #0 /home/api/Api.php(81): Model\Imobiliaria\Imobiliaria->getImobiliariaDados() #1 /home/businessrule/src/Model/Api2/Api2.php(28): Api->__construct() #2 /home/businessrule/src/Aplication.php(23): Model\Api2\Api2->__construct() #3 /home/businessrule/src/www/index.php(18): Aplication->__construct() #4 {main} thrown in /home/api/Model/Imobiliaria/Imobiliaria.php on line 48