Skip to content

Commit

Permalink
Update region parameter in country constructor to a working example (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arnebr authored Jan 27, 2024
1 parent d04df73 commit a3d0e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ In case your country has specific rules for calculating holidays,
for example region specific holidays, you can pass this to the constructor of your country class.

```php
$holidays = Holidays::for(Austria::make(region: 'de-bw'))->get();
$holidays = Holidays::for(Germany::make(region: 'DE-BW'))->get();
```

The value, `de-bw`, will be passed to the region parameter of the constructor of a country.
The value, `DE-BW`, will be passed to the region parameter of the constructor of a country.

```php
class Austria extends Country
class Germany extends Country
{
protected function __construct(
protected ?string $region = null,
Expand Down

0 comments on commit a3d0e1f

Please sign in to comment.