for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jenschude <[email protected]>
* @created: 27.01.15, 14:53
*/
namespace Commercetools\Core\Model\Common;
* @package Commercetools\Core\Model\Common
* @ramlTestIgnoreFields('obj')
* @link https://docs.commercetools.com/http-api-types.html#reference
* @method string getTypeId()
* @method string getId()
* @method Reference setTypeId(string $typeId = null)
* @method Reference setId(string $id = null)
* @method JsonObject getObj()
* @method Reference setObj(JsonObject $obj = null)
* @method string getKey()
* @method Reference setKey(string $key = null)
class Reference extends KeyReference
{
const OBJ = 'obj';
const TYPE_CLASS = JsonObject::class;
public function fieldDefinitions()
$fieldDefinitions = parent::fieldDefinitions();
$fieldDefinitions[static::OBJ] = [static::TYPE => static::TYPE_CLASS];
return $fieldDefinitions;
}