Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4792650
FeatureReportEntry.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
FeatureReportEntry.php
View Options
<?php
namespace
Nasqueron\Notifications\Config\Reporting
;
final
class
FeatureReportEntry
extends
BaseReportEntry
{
///
/// Public properties
///
/**
* @var string
*/
public
$name
;
/**
* @var bool
*/
public
$enabled
;
///
/// Constructor
///
/**
* Initializes a new instance of the FeatureReportEntry class.
*
* @var name The feature name
* @var bool If the feature enabled, true. Otherwise, false.
*/
public
function
__construct
(
string
$name
,
bool
$enabled
)
{
$this
->
name
=
$name
;
$this
->
enabled
=
$enabled
;
}
///
/// Format
///
/**
* Gets the entry as an array.
*
* @return string[]
*/
public
function
toArray
()
:
array
{
return
[
$this
->
name
,
(
string
)
$this
->
enabled
,
];
}
/**
* Gets the entry as an array. Formats empty string.
*
* @return string[]
*/
public
function
toFancyArray
()
:
array
{
return
[
$this
->
name
,
self
::
fancyBool
(
$this
->
enabled
,
'✓'
),
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 20:14 (10 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2441418
Default Alt Text
FeatureReportEntry.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment