Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions src/Style/CheckboxStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,37 @@

class CheckboxStyle
{
protected const DEFAULT_STYLES = [
private const DEFAULT_STYLES = [
'markerOn' => '[✔] ',
'markerOff' => '[ ] ',
'itemExtra' => '✔',
'displaysExtra' => false,
];

protected $markerOn = '';

protected $markerOff = '';

protected $itemExtra = '';

protected $displaysExtra = false;

protected $custom = false;
/**
* @var string
*/
private $markerOn;

/**
* @var string
*/
private $markerOff;

/**
* @var string
*/
private $itemExtra;

/**
* @var bool
*/
private $displaysExtra;

/**
* @var bool
*/
private $custom = false;

public function __construct()
{
Expand Down
33 changes: 24 additions & 9 deletions src/Style/RadioStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,36 @@

class RadioStyle
{
protected const DEFAULT_STYLES = [
private const DEFAULT_STYLES = [
'markerOn' => '[●] ',
'markerOff' => '[○] ',
'itemExtra' => '✔',
'displaysExtra' => false,
];

protected $markerOn = '';

protected $markerOff = '';

protected $itemExtra = '';

protected $displaysExtra = false;

/**
* @var string
*/
private $markerOn;

/**
* @var string
*/
private $markerOff;

/**
* @var string
*/
private $itemExtra;

/**
* @var bool
*/
private $displaysExtra;

/**
* @var bool
*/
protected $custom = false;

public function __construct()
Expand Down