public static function get($cpf, $db) { $result = $db->get($cpf); $customer = new self($cpf, $result['name'], $result['email']); $customer->setDB($db); return $customer; }