for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GeoFixer\models\queries;
/**
* Class StreetsDatabaseQuery
*
* @package GeoFixer\models\queries
*/
class StreetsDatabaseQuery extends AbstractDatabaseQuery
{
* RegionsDatabaseQuery constructor.
public function __construct()
parent::__construct();
}
* Получаем улицы
* @return $this
public function getStreets()
$this->db = $this->db->select([self::FIAS_CODE, self::TITLE, self::KLADR_CODE])->from('fias_address_object');
return $this;
* Address level равен улице
public function addressLevel()
$this->db = $this->db->andWhere(['address_level' => self::STREET]);