adrema/app/Form/Presenters/NamiPresenter.php

16 lines
270 B
PHP
Raw Permalink Normal View History

2024-02-20 01:22:08 +01:00
<?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(', ');
}
}