/** * @param ComponentInterface $component */ public function registerComponent(ComponentInterface $component) { $this->componentsById[$component->getFullId()] = $component; // register value if it is a data unit if ($component instanceof DataUnitComponentInterface) { if (!$component->shouldIgnoreValue()) { $this->values[$component->getFullName()] = $component->getValue(); } $this->componentsByName[$component->getFullName()] = $component; } }
/** * @param ComponentInterface $component * @return string */ protected function replaceFullName(ComponentInterface $component) { if ($component instanceof DataUnitComponentInterface) { return $this->processPath($component->getFullName()); } return ''; }