protected function getMappingSegment($className, $segment) { return explode('@', $this->mappings[$className])[$segment]; }