1 | <?php |
||
9 | abstract class CountRule extends StandardRule |
||
10 | { |
||
11 | protected $maxCount; |
||
12 | |||
13 | protected $contentTypes = array('text/html'); |
||
14 | |||
15 | protected $errorMessage; |
||
16 | |||
17 | /** |
||
18 | * @param int $maxCount The maximum number of css files that are allowed in one html document |
||
19 | */ |
||
20 | public function init($maxCount) |
||
21 | { |
||
22 | $this->maxCount = $maxCount; |
||
23 | } |
||
24 | |||
25 | abstract protected function getFilesToCount(Document $document, ResponseInterface $response); |
||
26 | |||
27 | protected function doValidation(ResponseInterface $response) |
||
34 | } |
||
35 |