| 1 | <?php |
||
| 8 | final class AggregateSpamScore implements SpamScoreInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var SpamScoreInterface[] |
||
| 13 | */ |
||
| 14 | private $checkers; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * AggregateSpamCheck constructor. |
||
| 18 | * @param array $checkers |
||
| 19 | */ |
||
| 20 | public function __construct(array $checkers) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param MessageInterface $message |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | public function calculate(MessageInterface $message): int |
||
| 39 | } |