Refactor Classes
This commit is contained in:
@@ -1,23 +1,16 @@
|
||||
<?php /** @noinspection PhpUnusedPrivateFieldInspection */
|
||||
<?php
|
||||
/** @noinspection PhpUnusedPrivateFieldInspection */
|
||||
|
||||
|
||||
namespace TorstenHettstedt\TimekeepingApi\Models;
|
||||
|
||||
use MyCLabs\Enum\Enum;
|
||||
|
||||
/**
|
||||
* Enum-Klasse für die unterstützten Periode-Definitionen.
|
||||
* Der Wert der Periode ist ein Format-String für {@link https://secure.php.net/manual/en/datetime.format.php}.
|
||||
*
|
||||
* @extends Enum<string>
|
||||
*
|
||||
* @method static PeriodDesignationEnum WEEKLY()
|
||||
* @method static PeriodDesignationEnum MONTHLY()
|
||||
* @method static PeriodDesignationEnum YEARLY()
|
||||
*/
|
||||
class PeriodDesignationEnum extends Enum
|
||||
enum PeriodDesignationEnum: string
|
||||
{
|
||||
private const WEEKLY = 'Y#W';
|
||||
private const MONTHLY = 'Y-m';
|
||||
private const YEARLY = 'Y';
|
||||
case WEEKLY = 'Y#W';
|
||||
case MONTHLY = 'Y-m';
|
||||
case YEARLY = 'Y';
|
||||
}
|
||||
Reference in New Issue
Block a user