Probably I am not getting fully the purpose of the following PHP-construct, which is places in a php function:
$mainClass->getName($varNumber)