final public function registerRecord(array &$records = NULL, $record) { $result = $this->registerRecordImpl($records, $record); if (isset($this->parent)) { $parentResult = $this->parent->registerRecord($records, $record); // only one formatter should register the records // behaviour is unclear if two formatters register the same record if ($result && $parentResult) { $this->errorUnsupportedChainOfResultFormatters(); } $result = $result || $parentResult; } return $result; }