| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | public function __construct($value) |
||
| 18 | { |
||
| 19 | parent::__construct($value); |
||
| 20 | $this->setFractionDigits(0); |
||
| 21 | /* |
||
| 22 | * Match a single character present in the list below [\-+]? |
||
| 23 | * ? Quantifier — Matches between zero and one times, as many times as possible, giving back as needed |
||
| 24 | * \- matches the character - literally (case sensitive) |
||
| 25 | * + matches the character + literally (case sensitive) |
||
| 26 | * Match a single character present in the list below [0-9]+ |
||
| 27 | * + Quantifier — Matches between one and unlimited times, as many times as possible, giving back as needed |
||
| 28 | * 0-9 a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive) |
||
| 29 | */ |
||
| 30 | $this->setPatternFacet('/[\-+]?[0-9]+/'); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |