Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function __construct(string $ref) |
||
24 | { |
||
25 | if (!preg_match( |
||
26 | '@#/components/((x-[^/]+)|schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks)/[a-zA-Z0-9\.\-_]+$@', |
||
27 | $ref |
||
28 | )) { |
||
29 | throw new InvalidReferenceValue($ref); |
||
30 | } |
||
31 | $this->ref = $ref; |
||
32 | } |
||
68 |