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