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