[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php declare(strict_types=1); 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Configurator\RecursiveParser; 9 10 use s9e\TextFormatter\Configurator\RecursiveParser; 11 12 abstract class AbstractRecursiveMatcher implements MatcherInterface 13 { 14 /** 15 * @var RecursiveParser 16 */ 17 protected $parser; 18 19 /** 20 * @param RecursiveParser $parser 21 * @return void 22 */ 23 public function __construct(RecursiveParser $parser) 24 { 25 $this->parser = $parser; 26 } 27 28 /** 29 * Parse given string and return its value 30 * 31 * @param string $str 32 * @param string $restrict Pipe-separated list of allowed matches (ignored if empty) 33 * @return mixed 34 */ 35 protected function recurse(string $str, string $restrict = '') 36 { 37 return $this->parser->parse($str, $restrict)['value']; 38 } 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |