public static function convertClientToArray(IConsultantClient $client) { $res = array(); $res['name'] = $client->getName(); return $res; }