![]() |
commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
|
Inherits Commercetools\Api\Models\Common\BaseResource.
Inherited by Commercetools\Api\Models\ProductType\ProductTypeModel.
Public Member Functions | |
getId () | |
getVersion () | |
getCreatedAt () | |
getLastModifiedAt () | |
getLastModifiedBy () | |
getCreatedBy () | |
getKey () | |
getName () | |
getDescription () | |
getAttributes () | |
setId (?string $id) | |
setVersion (?int $version) | |
setCreatedAt (?DateTimeImmutable $createdAt) | |
setLastModifiedAt (?DateTimeImmutable $lastModifiedAt) | |
setLastModifiedBy (?LastModifiedBy $lastModifiedBy) | |
setCreatedBy (?CreatedBy $createdBy) | |
setKey (?string $key) | |
setName (?string $name) | |
setDescription (?string $description) | |
setAttributes (?AttributeDefinitionCollection $attributes) | |
![]() | |
get (string $field) | |
with (?callable $callable=null) | |
Public Attributes | |
const | FIELD_LAST_MODIFIED_BY = 'lastModifiedBy' |
const | FIELD_CREATED_BY = 'createdBy' |
const | FIELD_KEY = 'key' |
const | FIELD_NAME = 'name' |
const | FIELD_DESCRIPTION = 'description' |
const | FIELD_ATTRIBUTES = 'attributes' |
![]() | |
const | FIELD_ID = 'id' |
const | FIELD_VERSION = 'version' |
const | FIELD_CREATED_AT = 'createdAt' |
const | FIELD_LAST_MODIFIED_AT = 'lastModifiedAt' |
Additional Inherited Members | |
![]() | |
static | of ($data=null) |
static | fromArray (array $data=[]) |
static | fromStdClass (?stdClass $data=null) |
Definition at line 18 of file ProductType.php.
Commercetools\Api\Models\ProductType\ProductType::getAttributes | ( | ) |
Attributes specified for the ProductType.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getCreatedAt | ( | ) |
Date and time (UTC) the ProductType was initially created.
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getCreatedBy | ( | ) |
IDs and references that created the ProductType.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getDescription | ( | ) |
Description of the ProductType.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getId | ( | ) |
Unique identifier of the ProductType.
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getKey | ( | ) |
User-defined unique identifier of the ProductType.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getLastModifiedAt | ( | ) |
Date and time (UTC) the ProductType was last updated.
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getLastModifiedBy | ( | ) |
IDs and references that last modified the ProductType.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getName | ( | ) |
Name of the ProductType.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::getVersion | ( | ) |
Current version of the ProductType.
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setAttributes | ( | ?AttributeDefinitionCollection | $attributes | ) |
?AttributeDefinitionCollection | $attributes |
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setCreatedAt | ( | ?DateTimeImmutable | $createdAt | ) |
?DateTimeImmutable | $createdAt |
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setCreatedBy | ( | ?CreatedBy | $createdBy | ) |
?CreatedBy | $createdBy |
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setDescription | ( | ?string | $description | ) |
?string | $description |
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setId | ( | ?string | $id | ) |
?string | $id |
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setKey | ( | ?string | $key | ) |
?string | $key |
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setLastModifiedAt | ( | ?DateTimeImmutable | $lastModifiedAt | ) |
?DateTimeImmutable | $lastModifiedAt |
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setLastModifiedBy | ( | ?LastModifiedBy | $lastModifiedBy | ) |
?LastModifiedBy | $lastModifiedBy |
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setName | ( | ?string | $name | ) |
?string | $name |
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
Commercetools\Api\Models\ProductType\ProductType::setVersion | ( | ?int | $version | ) |
?int | $version |
Implements Commercetools\Api\Models\Common\BaseResource.
Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.
const Commercetools\Api\Models\ProductType\ProductType::FIELD_ATTRIBUTES = 'attributes' |
Definition at line 25 of file ProductType.php.
const Commercetools\Api\Models\ProductType\ProductType::FIELD_CREATED_BY = 'createdBy' |
Definition at line 21 of file ProductType.php.
const Commercetools\Api\Models\ProductType\ProductType::FIELD_DESCRIPTION = 'description' |
Definition at line 24 of file ProductType.php.
const Commercetools\Api\Models\ProductType\ProductType::FIELD_KEY = 'key' |
Definition at line 22 of file ProductType.php.
const Commercetools\Api\Models\ProductType\ProductType::FIELD_LAST_MODIFIED_BY = 'lastModifiedBy' |
Definition at line 20 of file ProductType.php.
const Commercetools\Api\Models\ProductType\ProductType::FIELD_NAME = 'name' |
Definition at line 23 of file ProductType.php.