diff --git a/src/CookiesConsent.php b/src/CookiesConsent.php index bc782a7..7bd6921 100755 --- a/src/CookiesConsent.php +++ b/src/CookiesConsent.php @@ -23,6 +23,14 @@ public function __construct( $this->definition = new Collection; } + /** + * @return Collection + */ + public function getDefinition(): Collection + { + return $this->definition; + } + public function getCookie(): ?string { return Cookie::get($this->cookieName); diff --git a/src/Facades/CookiesConsent.php b/src/Facades/CookiesConsent.php index 7d610f9..0cd0dac 100644 --- a/src/Facades/CookiesConsent.php +++ b/src/Facades/CookiesConsent.php @@ -2,9 +2,12 @@ namespace Elegantly\CookiesConsent\Facades; +use Elegantly\CookiesConsent\CookieGroupDefinition; +use Illuminate\Support\Collection; use Illuminate\Support\Facades\Facade; /** + * @method static Collection getDefinition() * @method static CookiesConsent register(CookieGroupDefinition $group) * @method static CookiesConsent registerEssentials() * @method static string|null getCookie()