| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | abstract class AbstractHtmlScraper |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \Aoe\Asdis\Content\Scraper\Extractor\XmlTagAttribute |
||
| 15 | */ |
||
| 16 | private $xmlTagAttributeExtractor; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var \Aoe\Asdis\Domain\Model\Asset\Factory |
||
| 20 | */ |
||
| 21 | private $assetFactory; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param \Aoe\Asdis\Content\Scraper\Extractor\XmlTagAttribute $xmlTagAttributeExtractor |
||
| 25 | */ |
||
| 26 | 10 | public function injectXmlTagAttributeExtractor(XmlTagAttribute $xmlTagAttributeExtractor) |
|
| 29 | 10 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param \Aoe\Asdis\Domain\Model\Asset\Factory $assetFactory |
||
| 33 | */ |
||
| 34 | 10 | public function injectAssetFactory(Factory $assetFactory) |
|
| 37 | 10 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $tagName |
||
| 41 | * @param string $attributeName |
||
| 42 | * @param string $content |
||
| 43 | * @param array $requiredOtherAttributes |
||
| 44 | * @return \Aoe\Asdis\Domain\Model\Asset\Collection |
||
| 45 | */ |
||
| 46 | 10 | protected function getAssets($tagName, $attributeName, $content, array $requiredOtherAttributes = []) |
|
| 56 | } |