CompanyRepository
Table of Contents
Methods
- add() : Company
- delete() : void
- getByCompanyId() : CompanyCollection
- getById() : Company|null
- getByUnique() : Company|null
- getList() : CompanyCollection
- getListByIds() : CompanyCollection
- save() : Company
- update() : Company
Methods
add()
public
add(Company $item) : Company
Parameters
- $item : Company
Return values
Companydelete()
public
delete(int $id) : void
Parameters
- $id : int
getByCompanyId()
public
getByCompanyId(int $myCompanyId) : CompanyCollection
Parameters
- $myCompanyId : int
Return values
CompanyCollectiongetById()
public
getById(int $id) : Company|null
Parameters
- $id : int
Return values
Company|nullgetByUnique()
public
getByUnique(string $code) : Company|null
Parameters
- $code : string
Return values
Company|nullgetList()
public
getList([int|null $limit = null ][, int $offset = 0 ]) : CompanyCollection
Parameters
- $limit : int|null = null
- $offset : int = 0
Return values
CompanyCollectiongetListByIds()
public
getListByIds(array<int, int> $ids[, int|null $limit = null ][, int $offset = 0 ]) : CompanyCollection
Parameters
- $ids : array<int, int>
- $limit : int|null = null
- $offset : int = 0
Return values
CompanyCollectionsave()
public
save(Company $item) : Company
Parameters
- $item : Company
Return values
Companyupdate()
public
update(Company $item) : Company
Parameters
- $item : Company