public function getLoadErrors() { if (null === $this->state) { throw new NotLoadedException('The mapping is not loaded.'); } return $this->loadErrors; }
private function assertNoLoadErrors(PathMapping $mapping) { $loadErrors = $mapping->getLoadErrors(); if (count($loadErrors) > 0) { // Rethrow first error throw reset($loadErrors); } }