for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GeoFixer\models\queries;
/**
* Class HousesDatabaseQuery
*
* @package GeoFixer\models\queries
*/
class HousesDatabaseQuery extends AbstractDatabaseQuery
{
* RegionsDatabaseQuery constructor.
public function __construct()
parent::__construct();
}
* Получаем дома
* @return $this
public function getHouses()
$this->db = $this->db->select(['house_id', 'number'])->from('fias_house');
return $this;
* Address ID равен
* @param $street_id
public function addressId($street_id)
$this->db = $this->db->andWhere([self::FIAS_CODE => $street_id]);
* Номер дома равен
* @param $number
public function houseNumber($number)
$this->db = $this->db->andWhere(['number' => $number]);
* Номер корпуса равен
* @param $building
public function building($building)
$this->db = $this->db->andWhere(['building' => $building]);