Skip to content

Commit

Permalink
refactoring: add some constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Feb 7, 2021
1 parent c822c6e commit 4a59971
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ class Options
public const PROFILE_ATSC_TV = 'atsc-tv';
public const PROFILE_TV = 'tv';

public const USER_MEDIUM_ALL = 'all';
public const USER_MEDIUM_AURAL = 'aural';
public const USER_MEDIUM_BRAILLE = 'braille';
public const USER_MEDIUM_EMBOSSED = 'embossed';
public const USER_MEDIUM_HANDHELD = 'handheld';
public const USER_MEDIUM_PRINT = 'print';
public const USER_MEDIUM_PROJECTION = 'projection';
public const USER_MEDIUM_SCREEN = 'screen';
public const USER_MEDIUM_TTY = 'tty';
public const USER_MEDIUM_TV = 'tv';
public const USER_MEDIUM_PRESENTATION = 'presentation';

public const WARNING_ALL = '2';
public const WARNING_NORMAL = '1';
public const WARNING_IMPORTANT = '0';
public const WARNING_NONE = 'no';

/**
* Warning level
* Default value is '1', and value could one of these :
Expand All @@ -28,7 +45,7 @@ class Options
*
* @var string
*/
private $warning = '1';
private $warning = self::WARNING_NORMAL;

/**
* Profile
Expand Down Expand Up @@ -70,7 +87,7 @@ class Options
*
* @var string
*/
private $userMedium = 'all';
private $userMedium = self::USER_MEDIUM_ALL;

/**
* Language used for response messages
Expand Down

0 comments on commit 4a59971

Please sign in to comment.