class OptionCodeParser

Option-good code can be parsed by the OptionGoodCodeParser.

Option-good code can be matched by 'name', because option-good code have not code, so GoodCodeParser can not be used to parse option-good codes.

Methods

__construct(string $parse, string $name)

Constructor.

with(string $parser, array $goods, array $options)

Ready to use a fit parser.

array|string
get()

Return option-good code or codes.

Details

at line 33
__construct(string $parse, string $name)

Constructor.

Parameters

string $parse

Good name to be parsed.

string $name

Option good name to be parsed.

at line 46
OptionCodeParser with(string $parser, array $goods, array $options)

Ready to use a fit parser.

Parameters

string $parser

Parser name eg. OptionGood::class.

array $goods

Good code array

array $options

Option code array

Return Value

OptionCodeParser

at line 56
array|string get()

Return option-good code or codes.

Return Value

array|string