IMO this should be moved to a static property:

```php
private static $nameToTypeMapping = array(
    'submit' => 'submit',
    'reset' => 'reset',
);
```