MentionParser
in package
implements
InlineParserInterface
FinalYes
Table of Contents
Interfaces
Properties
- $identifierPattern : string
- $mentionGenerator : MentionGeneratorInterface
- $name : string
- $prefix : string
Methods
- __construct() : mixed
- createWithCallback() : MentionParser
- createWithStringTemplate() : MentionParser
- getMatchDefinition() : InlineParserMatch
- parse() : bool
Properties
$identifierPattern
private
string
$identifierPattern
Tags
$mentionGenerator
private
MentionGeneratorInterface
$mentionGenerator
Tags
$name
private
string
$name
Tags
$prefix
private
string
$prefix
Tags
Methods
__construct()
public
__construct(string $name, string $prefix, string $identifierPattern, MentionGeneratorInterface $mentionGenerator) : mixed
Parameters
- $name : string
- $prefix : string
- $identifierPattern : string
- $mentionGenerator : MentionGeneratorInterface
createWithCallback()
public
static createWithCallback(string $name, string $prefix, string $mentionRegex, callable $callback) : MentionParser
Parameters
- $name : string
- $prefix : string
- $mentionRegex : string
- $callback : callable
Return values
MentionParsercreateWithStringTemplate()
public
static createWithStringTemplate(string $name, string $prefix, string $mentionRegex, string $urlTemplate) : MentionParser
Parameters
- $name : string
- $prefix : string
- $mentionRegex : string
- $urlTemplate : string
Return values
MentionParsergetMatchDefinition()
public
getMatchDefinition() : InlineParserMatch
Return values
InlineParserMatchparse()
public
parse(InlineParserContext $inlineContext) : bool
Parameters
- $inlineContext : InlineParserContext