Copied!

CompanyService

CompanyService.php : 20

Constants

publicDEFAULT_COMPANY_LIST_LIMIT

CompanyService.php : 22
public mixed DEFAULT_COMPANY_LIST_LIMIT = 25

Methods

publiccreateCompany()

CompanyService.php : 60
public createCompany(CompanyCreateStruct $companyCreateStruct[, array<string|int, string>|null $fieldIdentifiersToValidate = null ]) : Company

Parameters

Name Type Default value Description
$companyCreateStruct CompanyCreateStruct - -
$fieldIdentifiersToValidate array<string|int, string>|null null -

Return values

Company

publiccreateCompanyAddressBookFolder()

CompanyService.php : 55
public createCompanyAddressBookFolder(Company $company) : Content

Parameters

Name Type Default value Description
$company Company - -

Return values

Content

publiccreateCompanyMembersUserGroup()

CompanyService.php : 57
public createCompanyMembersUserGroup(Company $company) : Content

Parameters

Name Type Default value Description
$company Company - -

Return values

Content

publicdeleteCompany()

CompanyService.php : 72
public deleteCompany(Company $company) : void

Parameters

Name Type Default value Description
$company Company - -

publicgetCompanies()

CompanyService.php : 38
public getCompanies([Criterion|null $filter = null ][, array<string|int, SortClause$sortClauses = [] ][, int|null $limit = self::DEFAULT_COMPANY_LIST_LIMIT ][, int $offset = 0 ]) : array<string|int, Company>

Parameters

Name Type Default value Description
$filter Criterion|null null -
$sortClauses array<string|int, SortClause> [] -
$limit int|null CompanyService::DEFAULT_COMPANY_LIST_LIMIT -
$offset int 0 -

Return values

array<string|int, Company>

publicgetCompaniesCount()

CompanyService.php : 29
public getCompaniesCount([Criterion|null $filter = null ]) : int

Parameters

Name Type Default value Description
$filter Criterion|null null -

Return values

int

publicgetCompany()

CompanyService.php : 27
public getCompany(int $id) : Company

Parameters

Name Type Default value Description
$id int - -

Return values

Company

Tags
Throws
NotFoundException

publicgetCompanySalesRepresentative()

CompanyService.php : 45
public getCompanySalesRepresentative(Company $company) : User|null

Parameters

Name Type Default value Description
$company Company - -

Return values

User|null

publicnewCompanyCreateStruct()

CompanyService.php : 74
public newCompanyCreateStruct() : CompanyCreateStruct

Return values

CompanyCreateStruct

publicnewCompanyUpdateStruct()

CompanyService.php : 76
public newCompanyUpdateStruct() : CompanyUpdateStruct

Return values

CompanyUpdateStruct

publicsetCompanyAddressBookRelation()

CompanyService.php : 51
public setCompanyAddressBookRelation(Company $company, Content $content) : void

Parameters

Name Type Default value Description
$company Company - -
$content Content - -

publicsetCompanyMembersRelation()

CompanyService.php : 53
public setCompanyMembersRelation(Company $company, Content $content) : void

Parameters

Name Type Default value Description
$company Company - -
$content Content - -

publicsetContact()

CompanyService.php : 49
public setContact(Company $company, Member $contact) : void

Parameters

Name Type Default value Description
$company Company - -
$contact Member - -

publicsetDefaultShippingAddress()

CompanyService.php : 47
public setDefaultShippingAddress(Company $company, ShippingAddress $shippingAddress) : void

Parameters

Name Type Default value Description
$company Company - -
$shippingAddress ShippingAddress - -

publicupdateCompany()

CompanyService.php : 66
public updateCompany(Company $company, CompanyUpdateStruct $companyUpdateStruct[, array<string|int, string>|null $fieldIdentifiersToValidate = null ]) : Company

Parameters

Name Type Default value Description
$company Company - -
$companyUpdateStruct CompanyUpdateStruct - -
$fieldIdentifiersToValidate array<string|int, string>|null null -

Return values

Company