adrema/app/Form/Presenters/BooleanPresenter.php

16 lines
223 B
PHP
Raw Permalink Normal View History

2024-04-12 15:42:43 +02:00
<?php
namespace App\Form\Presenters;
class BooleanPresenter extends Presenter
{
/**
* @param mixed $value
*/
public function present($value): string
{
return $value ? 'Ja' : 'Nein';
}
}