Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
/*
4
 * This file is part of composer/pcre.
5
 *
6
 * (c) Composer <https://github.com/composer>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
 
12
namespace Composer\Pcre;
13
 
14
final class ReplaceResult
15
{
16
    /**
17
     * @readonly
18
     * @var string
19
     */
20
    public $result;
21
 
22
    /**
23
     * @readonly
24
     * @var 0|positive-int
25
     */
26
    public $count;
27
 
28
    /**
29
     * @readonly
30
     * @var bool
31
     */
32
    public $matched;
33
 
34
    /**
35
     * @param 0|positive-int $count
36
     */
37
    public function __construct(int $count, string $result)
38
    {
39
        $this->count = $count;
40
        $this->matched = (bool) $count;
41
        $this->result = $result;
42
    }
43
}