1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 16:23:19 +01:00
openstamanager/modules/stati_preventivo/api/v1/StatiPreventivi.php
2019-07-19 16:51:52 +02:00

29 lines
542 B
PHP

<?php
namespace Modules\StatiPreventivo\API\v1;
use API\Interfaces\RetrieveInterface;
use API\Resource;
class StatiPreventivi extends Resource implements RetrieveInterface
{
public function retrieve($request)
{
$table = 'co_statipreventivi';
$select = [
'*',
];
$where = $request['where'];
if (empty($where['deleted_at'])) {
$where['deleted_at'] = null;
}
return [
'select' => $select,
'table' => $table,
];
}
}