-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MohammadRasoul Fekri
committed
Feb 18, 2020
1 parent
299a905
commit 2213d89
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?php | ||
|
||
namespace GeniusTS\HijriDate\Translations; | ||
|
||
|
||
/** | ||
* Class Persian | ||
* | ||
* @package GeniusTS\HijriDate\Translations | ||
*/ | ||
class Persian implements TranslationInterface | ||
{ | ||
|
||
/** | ||
* Hijri Months names | ||
* | ||
* @var array | ||
*/ | ||
protected $hijriMonths = [ | ||
'محرم', | ||
'صفر', | ||
'ربیع الاول', | ||
'ربیع الثانی', | ||
'جمادی الاول', | ||
'جمادی الثانی', | ||
'رجب', | ||
'شعبان', | ||
'رمضان', | ||
'شوال', | ||
'ذی القعده', | ||
'ذی الحجه', | ||
]; | ||
|
||
/** | ||
* short days | ||
* | ||
* @var array | ||
*/ | ||
protected $shortDays = ['یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه']; | ||
|
||
/** | ||
* days names | ||
* | ||
* @var array | ||
*/ | ||
protected $days = ['یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه']; | ||
|
||
/** | ||
* periods | ||
* | ||
* @var array | ||
*/ | ||
protected $periods = ['ق.ظ', 'ب.ظ']; | ||
|
||
/** | ||
* get array of months names | ||
* | ||
* @return array | ||
*/ | ||
public function getHijriMonths(): array | ||
{ | ||
return $this->hijriMonths; | ||
} | ||
|
||
/** | ||
* get array of short days names | ||
* started from Sunday | ||
* | ||
* @return array | ||
*/ | ||
public function getShortDays(): array | ||
{ | ||
return $this->shortDays; | ||
} | ||
|
||
/** | ||
* get array of months names | ||
* started from Sunday | ||
* | ||
* @return array | ||
*/ | ||
public function getDays(): array | ||
{ | ||
return $this->days; | ||
} | ||
|
||
/** | ||
* get array of periods | ||
* | ||
* @return array | ||
*/ | ||
public function getPeriods(): array | ||
{ | ||
return $this->periods; | ||
} | ||
} |