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
<?php
/**
*/
namespace Commercetools\Core\Error;
use Commercetools\Core\Model\Common\Reference;
/**
* @package Commercetools\Core\Error
*
* @method string getCode()
* @method DuplicateFieldWithConflictingResourceError setCode(string $code = null)
* @method string getMessage()
* @method DuplicateFieldWithConflictingResourceError setMessage(string $message = null)
* @method string getField()
* @method DuplicateFieldWithConflictingResourceError setField(string $field = null)
* @method mixed getDuplicateValue()
* @method DuplicateFieldWithConflictingResourceError setDuplicateValue($duplicateValue = null)
* @method Reference getConflictingResource()
* @method DuplicateFieldWithConflictingResourceError setConflictingResource(Reference $conflictingResource = null)
*/
class DuplicateFieldWithConflictingResourceError extends ApiError
{
const CODE = 'DuplicateFieldWithConflictingResource';
public function fieldDefinitions()
{
$definitions = parent::fieldDefinitions();
$definitions['field'] = [static::TYPE => 'string'];
$definitions['duplicateValue'] = [static::TYPE => null];
$definitions['conflictingResource'] = [static::TYPE => Reference::class];
return $definitions;
}
}