1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<?php
namespace Commercetools\Core\Model\Message;
use Commercetools\Core\Model\Category\CategoryReference;
use Commercetools\Core\Model\Common\DateTimeDecorator;
use DateTime;
use Commercetools\Core\Model\Common\Reference;
/**
* @package Commercetools\Core\Model\Message
* @link https://docs.commercetools.com/http-api-message-types#productaddedtocategory-message
*
* @method string getId()
* @method ProductAddedToCategoryMessage setId(string $id = null)
* @method int getVersion()
* @method ProductAddedToCategoryMessage setVersion(int $version = null)
* @method DateTimeDecorator getCreatedAt()
* @method ProductAddedToCategoryMessage setCreatedAt(DateTime $createdAt = null)
* @method DateTimeDecorator getLastModifiedAt()
* @method ProductAddedToCategoryMessage setLastModifiedAt(DateTime $lastModifiedAt = null)
* @method int getSequenceNumber()
* @method ProductAddedToCategoryMessage setSequenceNumber(int $sequenceNumber = null)
* @method Reference getResource()
* @method ProductAddedToCategoryMessage setResource(Reference $resource = null)
* @method int getResourceVersion()
* @method ProductAddedToCategoryMessage setResourceVersion(int $resourceVersion = null)
* @method string getType()
* @method ProductAddedToCategoryMessage setType(string $type = null)
* @method UserProvidedIdentifiers getResourceUserProvidedIdentifiers()
* phpcs:disable
* @method ProductAddedToCategoryMessage setResourceUserProvidedIdentifiers(UserProvidedIdentifiers $resourceUserProvidedIdentifiers = null)
* phpcs:enable
* @method CategoryReference getCategory()
* @method ProductAddedToCategoryMessage setCategory(CategoryReference $category = null)
* @method bool getStaged()
* @method ProductAddedToCategoryMessage setStaged(bool $staged = null)
*/
class ProductAddedToCategoryMessage extends Message
{
const MESSAGE_TYPE = 'ProductAddedToCategory';
public function fieldDefinitions()
{
$definitions = parent::fieldDefinitions();
$definitions['category'] = [static::TYPE => CategoryReference::class];
$definitions['staged'] = [static::TYPE => 'bool'];
return $definitions;
}
}