Se il tuo problema è che ad un

Codice PHP:
echo $user->getNome(); 
non ti stampa nulla, il motivo è che hai sbagliato a valorizzare le proprietà della classe User appunto. Nei vari setter sostituisci

Codice PHP:
$nome $nameUser
con

Codice PHP:
$this->$nome $nameUser
Inoltre, tu hai

Codice PHP:
    $user = new User(); 
    
$user $interaction->getDataFromDb($name); 
ma getDataFromDb($name) ti restituisce a sua volta un oggetto User