\Iqrf\Repository\ModelsManufacturerManager

Manufacturer manager

Summary

Methods
Properties
Constants
__construct()
list()
get()
No public properties found
PATH
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

PATH

PATH = manufacturers

Manufacturers path

Methods

__construct()

__construct(\Iqrf\Repository\Models\ApiClient  apiClient) : 

Constructor

Parameters

\Iqrf\Repository\Models\ApiClient apiClient

JSON API client

Returns

list()

list() : \Iqrf\Repository\Models\Manufacturer||string|int

Lists all manufacturers

Throws

\Iqrf\Repository\Models\CorruptedData
\Iqrf\Repository\Models\ServiceUnavailable

Returns

\Iqrf\Repository\Models\Manufacturer||string|int —

All manufacturers

get()

get(  id) : \Iqrf\Repository\Models\Manufacturer

Returns the manufacturer by its ID

Parameters

id

Manufacturer

Throws

\Iqrf\Repository\Models\CorruptedData
\Iqrf\Repository\Models\ManufacturerNotFound
\Iqrf\Repository\Models\ServiceUnavailable

Returns

\Iqrf\Repository\Models\Manufacturer —

Manufacturer