23 lines
394 B
PHP
23 lines
394 B
PHP
<@php
|
|
|
|
namespace {namespace};
|
|
|
|
use CodeIgniter\API\BaseTransformer;
|
|
|
|
class {class} extends BaseTransformer
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param mixed $resource
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(mixed $resource): array
|
|
{
|
|
return [
|
|
// Add your transformation logic here
|
|
];
|
|
}
|
|
}
|