| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class AbstractHtmlScraper |
||
| 13 | { |
||
| 14 | private ?XmlTagAttribute $xmlTagAttributeExtractor = null; |
||
| 15 | private ?Factory $assetFactory = null; |
||
| 16 | |||
| 17 | public function __construct(XmlTagAttribute $xmlTagAttributeExtractor, Factory $assetFactory) { |
||
| 20 | } |
||
| 21 | |||
| 22 | /* |
||
| 23 | public function injectXmlTagAttributeExtractor(XmlTagAttribute $xmlTagAttributeExtractor): void |
||
| 24 | { |
||
| 25 | $this->xmlTagAttributeExtractor = $xmlTagAttributeExtractor; |
||
| 26 | 10 | } |
|
| 27 | |||
| 28 | 10 | public function injectAssetFactory(Factory $assetFactory): void |
|
| 29 | 10 | { |
|
| 30 | $this->assetFactory = $assetFactory; |
||
| 31 | } |
||
| 32 | */ |
||
| 33 | |||
| 34 | 10 | protected function getAssets(string $tagName, string $attributeName, string $content, array $requiredOtherAttributes = []): ?Collection |
|
| 48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.