<?php

namespace Modules\RemoteData\EntityManagementWs\Model\Entity\City;

class Insert extends \Modules\RemoteData\EntityManagementWs\Model\Entity\InsertAbstract
{

	/**
	 * The entity fields - so we can easily and automatically associate them in the entity (values
	 * are taken from request body). This is an associative array.
	 * @var array
	 */
	protected $entityFields = [
		'nameStandard', 'nameLocal',
		'countryCode',
		'districtStandard', 'districtLocal',
		'regionStandard', 'regionLocal',
		'code3', 'codeLocal',
		'areaCode',
	];

	/**
	 * {@inheritDoc}
	 * @see \Modules\RemoteData\EntityManagementWs\Model\Entity\InsertAbstract::initEntityObject()
	 */
	protected function initEntityObject() :\App\Entity\GeneralAbstract
	{
		return \Entity\City::insert();
	}

}

