| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PapNeufParser extends AbstractParser |
||
| 11 | { |
||
| 12 | protected const PROVIDER = Provider::PAP_NEUF; |
||
| 13 | |||
| 14 | protected const SELECTOR_AD_WRAPPER = '#email-body tr:nth-child(n+2):not(:nth-last-child(-n+2))'; |
||
| 15 | protected const SELECTOR_LOCATION = '.box-text-content'; |
||
| 16 | protected const SELECTOR_BUILDING_NAME = '.box-text-content'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritDoc} |
||
| 20 | */ |
||
| 21 | 1 | protected function parsePrice(Crawler $crawler): ?float |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | 1 | protected function parseLocation(Crawler $crawler): ?string |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | */ |
||
| 41 | 1 | protected function parseBuildingName(Crawler $crawler): ?string |
|
| 50 |