Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5990789
Specs.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Specs.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Filter
;
/**
* (Mutable) value object that represents the "specs" of a filter.
*/
class
Specs
{
/** @var string */
private
$rules
;
/** @var string */
private
$comments
;
/** @var string */
private
$name
;
/** @var string[] */
private
$actionsNames
;
/** @var string */
private
$group
;
/**
* @param string $rules
* @param string $comments
* @param string $name
* @param string[] $actionsNames
* @param string $group
*/
public
function
__construct
(
string
$rules
,
string
$comments
,
string
$name
,
array
$actionsNames
,
string
$group
)
{
$this
->
rules
=
$rules
;
$this
->
comments
=
$comments
;
$this
->
name
=
$name
;
$this
->
actionsNames
=
$actionsNames
;
$this
->
group
=
$group
;
}
/**
* @return string
*/
public
function
getRules
():
string
{
return
$this
->
rules
;
}
/**
* @param string $rules
*/
public
function
setRules
(
string
$rules
):
void
{
$this
->
rules
=
$rules
;
}
/**
* @return string
*/
public
function
getComments
():
string
{
return
$this
->
comments
;
}
/**
* @param string $comments
*/
public
function
setComments
(
string
$comments
):
void
{
$this
->
comments
=
$comments
;
}
/**
* @return string
*/
public
function
getName
():
string
{
return
$this
->
name
;
}
/**
* @param string $name
*/
public
function
setName
(
string
$name
):
void
{
$this
->
name
=
$name
;
}
/**
* @return string[]
*/
public
function
getActionsNames
():
array
{
return
$this
->
actionsNames
;
}
/**
* @param string[] $actionsNames
*/
public
function
setActionsNames
(
array
$actionsNames
):
void
{
$this
->
actionsNames
=
$actionsNames
;
}
/**
* @return string
*/
public
function
getGroup
():
string
{
return
$this
->
group
;
}
/**
* @param string $group
*/
public
function
setGroup
(
string
$group
):
void
{
$this
->
group
=
$group
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 01:39 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
65/e0/78d1e38f7ae28fb73d69692dfa39
Default Alt Text
Specs.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment