You can use:
```php
$method = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $attributeName)));
```