| 1 | <?php |
||
| 25 | final class ConsentList implements IteratorAggregate, Countable |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var Consent[] |
||
| 29 | */ |
||
| 30 | private $consents = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Consent[] $consents |
||
| 34 | */ |
||
| 35 | public function __construct(array $consents) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param Consent $consent |
||
| 44 | */ |
||
| 45 | private function initializeWith(Consent $consent) |
||
| 49 | |||
| 50 | public function getIterator() |
||
| 54 | |||
| 55 | public function count() |
||
| 59 | } |
||
| 60 |