2
0
forked from Wavyzz/dolibarr

Qual: Fix phpdoc index(), FIELDS

This commit is contained in:
MDW
2025-03-03 01:49:20 +01:00
parent 41377a9917
commit eac44b164a
17 changed files with 63 additions and 21 deletions

View File

@@ -27,7 +27,7 @@ use Luracast\Restler\RestException;
class Webhook extends DolibarrApi
{
/**
* @var array Mandatory fields, checked when we create and update the object
* @var string[] Mandatory fields, checked when we create and update the object
*/
public static $FIELDS = array(
'url',
@@ -80,6 +80,8 @@ class Webhook extends DolibarrApi
* @param string $properties Restrict the data returned to these properties. Ignored if empty. Comma separated list of properties names
* @param bool $pagination_data If this parameter is set to true the response will include pagination data. Default value is false. Page starts from 0*
* @return array Array of target objects
* @phan-return Target[]|array{data:Target[],pagination:array{total:int,page:int,page_count:int,limit:int}}
* @phpstan-return Target[]|array{data:Target[],pagination:array{total:int,page:int,page_count:int,limit:int}}
*/
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $sqlfilters = '', $properties = '', $pagination_data = false)
{