src/Infotech/DocumentGenerator/DataStructure/MetadataSource/MetadataFetcher.php
public function getData($origin)
    {
        return array_reduce(
            $this->structure->getChildren(),
            function ($acc, $childDef) {
                return array_merge($acc, array($childDef['name'] => $childDef['name']));
            },
            $this->getMetadataValues()
        );
    }
public function getData($origin)
    {
        return array_reduce(
            $this->structure->getChildren(),
            function ($acc, $childDef) {
                return array_merge($acc, array($childDef['name'] => $childDef['name']));
            },
            $this->getMetadataValues()
        );
    }
Get placeholder substitutions from origin

@param mixed $origin original data or identifier to fetch strings

@return array Placeholders to data strings map