for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the La Voz Feed Generator package.
*
* (c) Zephia <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zephia\LaVozFeed\Entity;
use Zephia\LaVozFeed\Exception\LogicException;
/**
* Class District
* @package Zephia\LaVozFeed\Entity
* @author Mauro Moreno <[email protected]>
class District extends Entity
{
* @var string
private $district;
private $zone;
* Get District
* @return string
public function getDistrict()
if (empty($this->district)) {
throw new LogicException(
sprintf(self::ERROR_MISSING_ATTRIBUTE_FORMAT, 'district')
);
}
return $this->district;
* @param string $district
* @return District
public function setDistrict($district)
$this->district = $district;
return $this;
* Get Zone
public function getZone()
return $this->zone;
* @param string $zone
public function setZone($zone)
$this->zone = $zone;