Copied!

Company

Company.php : 19
Extends ValueObject

The base class for all value objects and structs.

Supports read-only properties by marking them as protected. In this case they will only be writable using constructor, and need to be documented using @property-read <type> <$var> annotation in class doc in addition to inline property doc. Writable properties must be public and must be documented inline.

Methods

public__construct()

Company.php : 25

Construct object optionally with a set of properties.

public __construct(Content $content)

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$content Content - -

publicgetAddressBookId()

Company.php : 79
public getAddressBookId() : int|null

Return values

int|null

publicgetBillingAddress()

Company.php : 47
public getBillingAddress() : Value

Return values

Value

publicgetContactId()

Company.php : 55
public getContactId() : int|null

Return values

int|null

publicgetContent()

Company.php : 42
public getContent() : Content

Return values

Content

publicgetCustomerGroup()

Company.php : 125
public getCustomerGroup() : CustomerGroupInterface

Return values

CustomerGroupInterface

publicgetDefaultAddressId()

Company.php : 71
public getDefaultAddressId() : int|null

Return values

int|null

publicgetId()

Company.php : 37
public getId() : int

Return values

int

publicgetLocation()

Company.php : 95
public getLocation() : Location|null

Return values

Location|null

publicgetLocationPath()

Company.php : 104
public getLocationPath() : string

Return values

string

publicgetMembersId()

Company.php : 87
public getMembersId() : int|null

Return values

int|null

publicgetName()

Company.php : 32
public getName() : string|null

Return values

string|null

publicgetSalesRepresentativeId()

Company.php : 63
public getSalesRepresentativeId() : int|null

Return values

int|null

publicisActive()

Company.php : 115
public isActive() : bool

Return values

bool

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Tags
Serializerignore

()