Skip to content

Commit

Permalink
added Pakistan as the country
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-nauman committed Jan 17, 2024
1 parent 9927780 commit 98d40da
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/Countries/Pakistan.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace Spatie\Holidays\Countries;

use Carbon\CarbonImmutable;

class Pakistan extends Country
{
public function countryCode(): string
{
return 'pk';
}

/**
* @return array<string, CarbonImmutable>
* @link https://en.wikipedia.org/wiki/Public_holidays_in_Pakistan
*/
protected function allHolidays(int $year): array
{
return array_merge([
'Kashmir Solidarity Day' => '02-05',
'Pakistan Day' => '03-23',
'Labour Day' => '05-01',
'Independence Day' => '08-14',
'Iqbal Day' => '11-09',
'Quaid-e-Azam Day' => '12-25',
], $this->variableHolidays($year));
}

/** @return array<string, CarbonImmutable> */
protected function variableHolidays(int $year): array
{
// The variable holidays are all follow lunar calendar so their dates are not confirmed.
return [];
}
}

0 comments on commit 98d40da

Please sign in to comment.