@@ 92-99 (lines=8) @@ | ||
89 | /** |
|
90 | * @inheritdoc |
|
91 | */ |
|
92 | public static function hasAttributeMapping(string $jsonName): bool |
|
93 | { |
|
94 | $mappings = static::getMappings(); |
|
95 | ||
96 | return |
|
97 | array_key_exists(static::SCHEMA_ATTRIBUTES, $mappings) === true && |
|
98 | array_key_exists($jsonName, $mappings[static::SCHEMA_ATTRIBUTES]) === true; |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * @inheritdoc |
|
@@ 104-111 (lines=8) @@ | ||
101 | /** |
|
102 | * @inheritdoc |
|
103 | */ |
|
104 | public static function hasRelationshipMapping(string $jsonName): bool |
|
105 | { |
|
106 | $mappings = static::getMappings(); |
|
107 | ||
108 | return |
|
109 | array_key_exists(static::SCHEMA_RELATIONSHIPS, $mappings) === true && |
|
110 | array_key_exists($jsonName, $mappings[static::SCHEMA_RELATIONSHIPS]) === true; |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * @inheritdoc |