Skip to content

Commit

Permalink
Merge pull request #5 from Yazanmy/master
Browse files Browse the repository at this point in the history
Adding "Ministry of Awqaf, Islamic Affairs, and Holy Places, Jordan" calculation method
  • Loading branch information
meezaan committed Mar 17, 2024
2 parents 5844f0d + 6ecb7f9 commit f7ed3a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/PrayerTimes/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Method
const METHOD_KEMENAG = 'KEMENAG'; // 20
const METHOD_MOROCCO = 'MOROCCO'; // 21
const METHOD_PORTUGAL = 'PORTUGAL'; // 22
const METHOD_JORDAN = 'JORDAN'; // 23
const METHOD_CUSTOM = 'CUSTOM'; // 99

/**
Expand Down Expand Up @@ -112,6 +113,7 @@ public static function getMethodCodes(): array
self::METHOD_KEMENAG,
self::METHOD_MOROCCO,
self::METHOD_PORTUGAL,
self::METHOD_JORDAN,
self::METHOD_CUSTOM,
];
}
Expand Down Expand Up @@ -384,6 +386,19 @@ public static function getMethods(): array
'longitude' => -9.1393366
]
],
self::METHOD_JORDAN => [
'id' => 23,
'name' => 'Ministry of Awqaf, Islamic Affairs and Holy Places, Jordan',
'params' => [
PrayerTimes::FAJR => 18,
PrayerTimes::MAGHRIB => '5 min',
PrayerTimes::ISHA => 18,
],
'location' => [ // Amman, Jordan
'latitude' => 31.9461222,
'longitude' => 35.923844
]
],
self::METHOD_CUSTOM => [
'id' => 99
],
Expand Down

0 comments on commit f7ed3a2

Please sign in to comment.