16 lines
270 B
PHP
16 lines
270 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Form\Presenters;
|
||
|
|
||
|
class NamiPresenter extends Presenter
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* @param ?array<int, array{id: int}> $value
|
||
|
*/
|
||
|
public function present($value): string
|
||
|
{
|
||
|
return collect(array_column($value, 'id'))->implode(', ');
|
||
|
}
|
||
|
}
|