install
This commit is contained in:
40
app/Modules/PersonStates/Repositories/MarriageRepository.php
Normal file
40
app/Modules/PersonStates/Repositories/MarriageRepository.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules\PersonStates\Repositories;
|
||||
|
||||
class MarriageRepository
|
||||
{
|
||||
public const MARRIED = 'married';
|
||||
|
||||
public const LEGAL_MARRIAGE = 'legal_marriage';
|
||||
|
||||
public const DIVORCED = 'divorced';
|
||||
|
||||
public const WIDOW = 'WIDOW';
|
||||
|
||||
public const SINGLE = 'single';
|
||||
|
||||
/**
|
||||
* Marriage values
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public static function values(): array
|
||||
{
|
||||
return [
|
||||
self::MARRIED => __('Married'),
|
||||
self::LEGAL_MARRIAGE => __('Legal Marriage'),
|
||||
self::DIVORCED => __('Divorced'),
|
||||
self::WIDOW => __('Widow'),
|
||||
self::SINGLE => __('Single'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Default marriage value
|
||||
*/
|
||||
public static function default(): string
|
||||
{
|
||||
return self::MARRIED;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user