| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Limoncello\Flute\Validation\JsonApi\Rules; |
||
| 46 | 36 | public static function toManyRelationship(string $type, RuleInterface $rule = null): RuleInterface |
|
| 47 | { |
||
| 48 | 36 | $primary = new ToManyRelationshipTypeChecker($type); |
|
| 49 | |||
| 50 | 36 | return $rule === null ? $primary : new AndOperator($primary, $rule); |
|
| 51 | } |
||
| 52 | } |
||
| 53 |