commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Commercetools\Api\Models\ProductType\ProductType Interface 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)
 
- Public Member Functions inherited from Commercetools\Base\JsonObject
 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'
 
- Public Attributes inherited from Commercetools\Api\Models\Common\BaseResource
const FIELD_ID = 'id'
 
const FIELD_VERSION = 'version'
 
const FIELD_CREATED_AT = 'createdAt'
 
const FIELD_LAST_MODIFIED_AT = 'lastModifiedAt'
 

Additional Inherited Members

- Static Public Member Functions inherited from Commercetools\Base\JsonObject
static of ($data=null)
 
static fromArray (array $data=[])
 
static fromStdClass (?stdClass $data=null)
 

Detailed Description

Definition at line 18 of file ProductType.php.

Member Function Documentation

◆ getAttributes()

Commercetools\Api\Models\ProductType\ProductType::getAttributes ( )

Attributes specified for the ProductType.

Returns
null|AttributeDefinitionCollection

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getCreatedAt()

Commercetools\Api\Models\ProductType\ProductType::getCreatedAt ( )

Date and time (UTC) the ProductType was initially created.

Returns
null|DateTimeImmutable

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getCreatedBy()

Commercetools\Api\Models\ProductType\ProductType::getCreatedBy ( )

IDs and references that created the ProductType.

Returns
null|CreatedBy

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getDescription()

Commercetools\Api\Models\ProductType\ProductType::getDescription ( )

Description of the ProductType.

Returns
null|string

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getId()

Commercetools\Api\Models\ProductType\ProductType::getId ( )

Unique identifier of the ProductType.

Returns
null|string

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getKey()

Commercetools\Api\Models\ProductType\ProductType::getKey ( )

User-defined unique identifier of the ProductType.

Returns
null|string

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getLastModifiedAt()

Commercetools\Api\Models\ProductType\ProductType::getLastModifiedAt ( )

Date and time (UTC) the ProductType was last updated.

Returns
null|DateTimeImmutable

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getLastModifiedBy()

Commercetools\Api\Models\ProductType\ProductType::getLastModifiedBy ( )

IDs and references that last modified the ProductType.

Returns
null|LastModifiedBy

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getName()

Commercetools\Api\Models\ProductType\ProductType::getName ( )

Name of the ProductType.

Returns
null|string

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ getVersion()

Commercetools\Api\Models\ProductType\ProductType::getVersion ( )

Current version of the ProductType.

Returns
null|int

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setAttributes()

Commercetools\Api\Models\ProductType\ProductType::setAttributes ( ?AttributeDefinitionCollection  $attributes)
Parameters
?AttributeDefinitionCollection$attributes

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setCreatedAt()

Commercetools\Api\Models\ProductType\ProductType::setCreatedAt ( ?DateTimeImmutable  $createdAt)
Parameters
?DateTimeImmutable$createdAt

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setCreatedBy()

Commercetools\Api\Models\ProductType\ProductType::setCreatedBy ( ?CreatedBy  $createdBy)
Parameters
?CreatedBy$createdBy

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setDescription()

Commercetools\Api\Models\ProductType\ProductType::setDescription ( ?string  $description)
Parameters
?string$description

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setId()

Commercetools\Api\Models\ProductType\ProductType::setId ( ?string  $id)

◆ setKey()

Commercetools\Api\Models\ProductType\ProductType::setKey ( ?string  $key)
Parameters
?string$key

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setLastModifiedAt()

Commercetools\Api\Models\ProductType\ProductType::setLastModifiedAt ( ?DateTimeImmutable  $lastModifiedAt)
Parameters
?DateTimeImmutable$lastModifiedAt

Implements Commercetools\Api\Models\Common\BaseResource.

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setLastModifiedBy()

Commercetools\Api\Models\ProductType\ProductType::setLastModifiedBy ( ?LastModifiedBy  $lastModifiedBy)
Parameters
?LastModifiedBy$lastModifiedBy

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setName()

Commercetools\Api\Models\ProductType\ProductType::setName ( ?string  $name)
Parameters
?string$name

Implemented in Commercetools\Api\Models\ProductType\ProductTypeModel.

◆ setVersion()

Commercetools\Api\Models\ProductType\ProductType::setVersion ( ?int  $version)

Member Data Documentation

◆ FIELD_ATTRIBUTES

const Commercetools\Api\Models\ProductType\ProductType::FIELD_ATTRIBUTES = 'attributes'

Definition at line 25 of file ProductType.php.

◆ FIELD_CREATED_BY

const Commercetools\Api\Models\ProductType\ProductType::FIELD_CREATED_BY = 'createdBy'

Definition at line 21 of file ProductType.php.

◆ FIELD_DESCRIPTION

const Commercetools\Api\Models\ProductType\ProductType::FIELD_DESCRIPTION = 'description'

Definition at line 24 of file ProductType.php.

◆ FIELD_KEY

const Commercetools\Api\Models\ProductType\ProductType::FIELD_KEY = 'key'

Definition at line 22 of file ProductType.php.

◆ FIELD_LAST_MODIFIED_BY

const Commercetools\Api\Models\ProductType\ProductType::FIELD_LAST_MODIFIED_BY = 'lastModifiedBy'

Definition at line 20 of file ProductType.php.

◆ FIELD_NAME

const Commercetools\Api\Models\ProductType\ProductType::FIELD_NAME = 'name'

Definition at line 23 of file ProductType.php.


The documentation for this interface was generated from the following file: