| 1 | <?php |
||
| 8 | class CookieConsent |
||
| 9 | { |
||
| 10 | const CONSENT_NECESSARY = 'necessary'; |
||
| 11 | const CONSENT_PREFERENCES = 'preferences'; |
||
| 12 | const CONSENT_STATISTICS = 'statistics'; |
||
| 13 | const CONSENT_MARKETING = 'marketing'; |
||
| 14 | |||
| 15 | protected $enabled; |
||
| 16 | protected $provider; |
||
| 17 | |||
| 18 | public function __construct(ConsentProvider $provider, Repository $config) |
||
| 23 | |||
| 24 | public function forNecessary() |
||
| 28 | |||
| 29 | public function forPreferences() |
||
| 33 | |||
| 34 | public function forStatistics() |
||
| 38 | |||
| 39 | public function forMarketing() |
||
| 43 | } |
||
| 44 |