SmartInvoiceAdapter extends Adapter
Table of Contents
Methods
- __construct() : mixed
- adapt() : array<string|int, ResultItem>
- Convert \Bitrix\Crm\Search\Result to array of \Bitrix\Main\Search\ResultItem
- addCategoryLabel() : self
- setCategory() : Adapter
Methods
__construct()
public
__construct(Factory $factory) : mixed
Parameters
- $factory : Factory
adapt()
Convert \Bitrix\Crm\Search\Result to array of \Bitrix\Main\Search\ResultItem
public
adapt(Result $result) : array<string|int, ResultItem>
Parameters
- $result : Result
Return values
array<string|int, ResultItem>addCategoryLabel()
public
addCategoryLabel(int $categoryId, string $label) : self
Parameters
- $categoryId : int
- $label : string
Return values
selfsetCategory()
public
setCategory(Category|null $category) : Adapter
Parameters
- $category : Category|null