hh
This commit is contained in:
44
common/hhapi/core/service/HHService.php
Normal file
44
common/hhapi/core/service/HHService.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user