Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | 1 | public static function create(array $pattern, string $anchor = self::ANCHOR_START, bool $fuzzy = false, $gadgetIds = null, $actions = null): self |
|
50 | { |
||
51 | 1 | $recognizer = new self(); |
|
52 | |||
53 | 1 | $recognizer->type = self::TYPE; |
|
54 | 1 | $recognizer->anchor = $anchor; |
|
55 | 1 | $recognizer->fuzzy = $fuzzy; |
|
56 | 1 | $recognizer->gadgetIds = $gadgetIds; |
|
57 | 1 | $recognizer->actions = $actions; |
|
58 | 1 | $recognizer->pattern = $pattern; |
|
59 | |||
60 | 1 | return $recognizer; |
|
61 | } |
||
63 |