# getDomain

Learn how to get the domain of the cookies.

This method provides the domain of the cookies.

## Signature

This method has the following signature:

```php
public function getDomain(): ?string
```

This method returns the cookie domain, or `null` to scope the cookies to the current host.

## Example

Here is a basic example of how to use this method:

```php
<?php
use Croct\Plug\CookieConfiguration;

$configuration = new CookieConfiguration();
$domain = $configuration->getDomain();
```
