\Iqrf\Repository\ModelsCompanyManager

Company 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 =companies

Companies 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\Company||string|int

Lists all companies

Throws

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

Returns

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

All companies

get()

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

Returns the company by its ID

Parameters

id

Company ID

Throws

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

Returns

\Iqrf\Repository\Models\Company —

Company