for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TERYT-API
*
* Copyright (c) 2017 pudelek.org.pl
* @license MIT License (MIT)
* For the full copyright and license information, please view source file
* that is bundled with this package in the file LICENSE
* @author Marcin Pudełek <[email protected]>
*/
namespace mrcnpdlk\Teryt;
use mrcnpdlk\Teryt\Model\City;
* Class Api
* @package mrcnpdlk\Teryt
class Api
{
* @var NativeApi
private $oNativeApi;
* Api constructor.
* @param Client $oClient
public function __construct(Client $oClient)
$this->oNativeApi = NativeApi::create($oClient);
}
* Get information about City
* @param string $id
* @return City
public function getCity(string $id)
$oCity = new City();
return $oCity->find($id);