2024-02-09 23:22:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Form\Presenters;
|
|
|
|
|
|
|
|
class EnumPresenter extends Presenter
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
2024-02-16 14:32:16 +01:00
|
|
|
* @param ?array<int, string> $value
|
2024-02-09 23:22:49 +01:00
|
|
|
*/
|
|
|
|
public function present($value): string
|
|
|
|
{
|
|
|
|
return is_array($value)
|
|
|
|
? implode(', ', $value)
|
|
|
|
: '';
|
|
|
|
}
|
|
|
|
}
|