|
@@ 101-108 (lines=8) @@
|
| 98 |
|
* @return string|null |
| 99 |
|
* @throws \InvalidArgumentException |
| 100 |
|
*/ |
| 101 |
|
protected function resolvePropertyClass($class) |
| 102 |
|
{ |
| 103 |
|
if (!$this->nsProperty) { |
| 104 |
|
$ns = ConfigurationManager::getConfiguration()->getPropertyNamespacesMap()->getAll(); |
| 105 |
|
$this->nsProperty = array_reverse($ns, true); |
| 106 |
|
} |
| 107 |
|
return $this->resolveClass($class, $this->nsProperty, PropertyInterface::class); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
/** |
| 111 |
|
* Resolve given class into FQCN class and check if it supports given namespace |
|
@@ 140-147 (lines=8) @@
|
| 137 |
|
* @return string|null |
| 138 |
|
* @throws \InvalidArgumentException |
| 139 |
|
*/ |
| 140 |
|
protected function resolveStructClass($class) |
| 141 |
|
{ |
| 142 |
|
if (!$this->nsStruct) { |
| 143 |
|
$ns = ConfigurationManager::getConfiguration()->getStructNamespacesMap()->getAll(); |
| 144 |
|
$this->nsStruct = array_reverse($ns, true); |
| 145 |
|
} |
| 146 |
|
return $this->resolveClass($class, $this->nsStruct, StructInterface::class); |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
|