code: protected function getMapping(string $clazz) : array {
  		if(isset($this->cachedMapping[$clazz])) {
  			return $this->cachedMapping[$clazz];
  		}
  		$ref = new \ReflectionClass($clazz);
  		
  		$mapping = array();
  		
  		foreach($this->mapping as $className => $config) {
  			if($clazz === $className || $ref->isSubclassOf($className)) {
  				$mapping = \array_merge($mapping, $config);
  			}
  		}
  		
  		$this->cachedMapping[$clazz] = $mapping;
  		
  		return $mapping;
  	}
docs: Fetches the mapping for the given object including the mapping of superclasses
  
  @return string[string]
  @throws \ReflectionException