for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
* @created: 04.02.15, 16:46
*/
namespace Commercetools\Core\Model\CustomerGroup;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\Common\Reference;
* @package Commercetools\Core\Model\CustomerGroup
* @link https://dev.commercetools.com/http-api-types.html#reference-types
* @link https://dev.commercetools.com/http-api-projects-customerGroups.html#customer-group
* @method string getTypeId()
* @method CustomerGroupReference setTypeId(string $typeId = null)
* @method string getId()
* @method CustomerGroupReference setId(string $id = null)
* @method CustomerGroup getObj()
* @method CustomerGroupReference setObj(CustomerGroup $obj = null)
* @method string getKey()
* @method CustomerGroupReference setKey(string $key = null)
class CustomerGroupReference extends Reference
{
const TYPE_CUSTOMER_GROUP = 'customer-group';
const TYPE_CLASS = '\Commercetools\Core\Model\CustomerGroup\CustomerGroup';
* @param $id
* @param Context|callable $context
* @return CustomerGroupReference
public static function ofId($id, $context = null)
return static::ofTypeAndId(static::TYPE_CUSTOMER_GROUP, $id, $context);
}