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
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\Zone;
use Commercetools\Core\Model\Common\JsonObject;
/**
* @package Commercetools\Core\Model\Zone
* @link https://docs.commercetools.com/http-api-projects-zones.html#location
* @method string getCountry()
* @method Location setCountry(string $country = null)
* @method string getState()
* @method Location setState(string $state = null)
*/
class Location extends JsonObject
{
public function fieldDefinitions()
{
return [
'country' => [static::TYPE => 'string'],
'state' => [static::TYPE => 'string', static::OPTIONAL => true],
];
}
}