GenericTextRole
extends BaseTextRole
in package
FinalYes
Table of Contents
Properties
- $baseRole : string|null
- $class : string
- $name : string
- $settingsManager : SettingsManager
Methods
- __construct() : mixed
- getAliases() : array<string|int, string>
- getBaseRole() : string|null
- getClass() : string
- getName() : string
- processNode() : InlineNode
- setBaseRole() : void
- setClass() : void
- withName() : BaseTextRole
Properties
$baseRole
protected
string|null
$baseRole
= null
$class
protected
string
$class
= ''
$name
protected
string
$name
= 'default'
$settingsManager read-only
private
SettingsManager
$settingsManager
Methods
__construct()
public
__construct(SettingsManager $settingsManager) : mixed
Parameters
- $settingsManager : SettingsManager
getAliases()
public
getAliases() : array<string|int, string>
Return values
array<string|int, string>getBaseRole()
public
getBaseRole() : string|null
Return values
string|nullgetClass()
public
getClass() : string
Return values
stringgetName()
public
getName() : string
Return values
stringprocessNode()
public
processNode(DocumentParserContext $documentParserContext, string $role, string $content, string $rawContent) : InlineNode
Parameters
- $documentParserContext : DocumentParserContext
- $role : string
- $content : string
-
the content with backslash escapes removed per spec
- $rawContent : string
-
the raw content, including backslash escapes
Return values
InlineNodesetBaseRole()
public
setBaseRole(string|null $baseRole) : void
Parameters
- $baseRole : string|null
setClass()
public
setClass(string $class) : void
Parameters
- $class : string
withName()
public
withName(string $name) : BaseTextRole
Parameters
- $name : string