Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jul 14, 2024
1 parent 44c686b commit 2c43cf2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CookiesConsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public function __construct(
$this->definition = new Collection;
}

/**
* @return Collection<string, CookieGroupDefinition>
*/
public function getDefinition(): Collection
{
return $this->definition;
}

public function getCookie(): ?string
{
return Cookie::get($this->cookieName);
Expand Down
3 changes: 3 additions & 0 deletions src/Facades/CookiesConsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

namespace Elegantly\CookiesConsent\Facades;

use Elegantly\CookiesConsent\CookieGroupDefinition;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Facade;

/**
* @method static Collection<string, CookieGroupDefinition> getDefinition()
* @method static CookiesConsent register(CookieGroupDefinition $group)
* @method static CookiesConsent registerEssentials()
* @method static string|null getCookie()
Expand Down

0 comments on commit 2c43cf2

Please sign in to comment.