You should validate input:

```php
->ifNotInArray(array('twig', 'php'))
->thenInvalid('Unknown templating engine selected %s.')