1 | <?php |
||
7 | class ReplaceResult extends RegexResult |
||
8 | { |
||
9 | /** @var string|array */ |
||
10 | protected $pattern; |
||
11 | |||
12 | /** @var string|array */ |
||
13 | protected $replacement; |
||
14 | |||
15 | /** @var string|array */ |
||
16 | protected $subject; |
||
17 | |||
18 | /** @var string|array */ |
||
19 | protected $result; |
||
20 | |||
21 | /** @var int */ |
||
22 | protected $count; |
||
23 | |||
24 | public function __construct($pattern, $replacement, $subject, $result, int $count) |
||
32 | |||
33 | public static function for($pattern, $replacement, $subject, $limit) |
||
50 | |||
51 | protected static function doReplacement($pattern, $replacement, $subject, $limit) |
||
59 | |||
60 | protected static function doReplacementWithCallable($pattern, callable $replacement, $subject, $limit) |
||
72 | |||
73 | public function result() |
||
77 | |||
78 | public function count() |
||
82 | } |
||
83 |