adrema/app/Form/Presenters/EnumPresenter.php

18 lines
281 B
PHP

<?php
namespace App\Form\Presenters;
class EnumPresenter extends Presenter
{
/**
* @param ?array<int, string> $value
*/
public function present($value): string
{
return is_array($value)
? implode(', ', $value)
: '';
}
}