| Total Complexity | 2 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class Resolver |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Vacancy repository |
||
| 29 | * |
||
| 30 | * @var VacancyRepository |
||
| 31 | */ |
||
| 32 | private $vacancyRepository; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Resolver constructor. |
||
| 36 | * |
||
| 37 | * @param VacancyRepository $vacancyRepository Vacancy repository |
||
| 38 | */ |
||
| 39 | public function __construct(VacancyRepository $vacancyRepository) |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns a vacancy instance related to the specified parsed data, if exists, null otherwise |
||
| 46 | * |
||
| 47 | * @param ParsedDto $scanResult Context of parsed vacancy data from website |
||
| 48 | * |
||
| 49 | * @return Vacancy|null |
||
| 50 | */ |
||
| 51 | public function resolveByParsedDto(ParsedDto $scanResult): ?Vacancy |
||
| 65 |