| 1 | <?php |
||
| 15 | class TokenDefinition |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $name; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $pcre; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | private $keep; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * TokenDefinition constructor. |
||
| 34 | * @param string $name |
||
| 35 | * @param string $pcre |
||
| 36 | * @param bool $keep |
||
| 37 | */ |
||
| 38 | public function __construct(string $name, string $pcre, bool $keep = true) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getName(): string |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getPcre(): string |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return bool |
||
| 63 | */ |
||
| 64 | public function isKeep(): bool |
||
| 68 | } |
||
| 69 |