| Conditions | 6 |
| Paths | 32 |
| Total Lines | 50 |
| Code Lines | 38 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 35 | public function getConflictedFields() |
||
| 36 | { |
||
| 37 | $conflictedFields = []; |
||
| 38 | if ($this->value !== self::OBJECT) { |
||
| 39 | array_push( |
||
| 40 | $conflictedFields, |
||
| 41 | 'properties', |
||
| 42 | 'additionalProperties', |
||
| 43 | 'required', |
||
| 44 | 'minProperties', |
||
| 45 | 'maxProperties' |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | if ($this->value !== self::STRING) { |
||
| 49 | array_push( |
||
| 50 | $conflictedFields, |
||
| 51 | 'minLength', |
||
| 52 | 'maxLength', |
||
| 53 | 'pattern', |
||
| 54 | 'minProperties', |
||
| 55 | 'maxProperties' |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | if ($this->value !== self::ARRAY) { |
||
| 59 | array_push( |
||
| 60 | $conflictedFields, |
||
| 61 | 'items', |
||
| 62 | 'minItems', |
||
| 63 | 'maxItems', |
||
| 64 | 'uniqueItems' |
||
| 65 | ); |
||
| 66 | } |
||
| 67 | if (!in_array($this->value, [self::NUMBER, self::INTEGER])) { |
||
| 68 | array_push( |
||
| 69 | $conflictedFields, |
||
| 70 | 'multipleOf', |
||
| 71 | 'minimum', |
||
| 72 | 'exclusiveMinimum', |
||
| 73 | 'maximum', |
||
| 74 | 'exclusiveMaximum' |
||
| 75 | ); |
||
| 76 | } |
||
| 77 | if (!in_array($this->value, [self::NUMBER, self::INTEGER, self::STRING])) { |
||
| 78 | array_push( |
||
| 79 | $conflictedFields, |
||
| 80 | 'format', |
||
| 81 | 'enum' |
||
| 82 | ); |
||
| 83 | } |
||
| 84 | return $conflictedFields; |
||
| 85 | } |
||
| 87 |