guild/common/hhapi/core/service/HHService.php

44 lines
604 B
PHP
Raw Normal View History

2018-11-21 17:02:14 +03:00
<?php
/**
* Created by PhpStorm.
* User: kirill
* Date: 15.11.18
* Time: 22:24
*/
namespace common\hhapi\core\service;
use common\hhapi\core\lib\Company;
use common\hhapi\core\lib\Vacancy;
class HHService
{
/**
* @param $id
* @return Company
*/
public function company($id)
{
return new Company($id);
}
/**
* @param $id
* @return Vacancy
*/
public function vacancy($id)
{
return new Vacancy($id);
}
/**
* @return HHService
*/
public static function run()
{
return new self();
}
}