Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function isTWrappedFunctionTypeValid($string) |
||
12 | { |
||
13 | $regex = '(Collection|Ref)\([^ \t]{1,}(\.[^ \t]{1,}){0,}\)'; |
||
14 | |||
15 | if (!is_string($string)) { |
||
16 | throw new \InvalidArgumentException("Input must be a string"); |
||
17 | } |
||
18 | if ($this->isTQualifiedNameValid($string)) { |
||
19 | return true; |
||
20 | } |
||
21 | return $this->matchesRegexPattern($regex, $string); |
||
22 | } |
||
23 | } |
||
24 |