src/Tadcka/Mapper/Mapping/MappingProvider.php
private function getItemBySource(MappingInterface $mapping, $sourceSlug)
    {
        if ($sourceSlug === $mapping->getLeftItem()->getSource()->getSlug()) {
            return $mapping->getLeftItem();
        }

        return $mapping->getRightItem();
    }
private function getItemBySource(MappingInterface $mapping, $sourceSlug)
    {
        if ($sourceSlug === $mapping->getLeftItem()->getSource()->getSlug()) {
            return $mapping->getLeftItem();
        }

        return $mapping->getRightItem();
    }
private function getItemBySource ( MappingInterface $ mapping , $ sourceSlug ) { if ( $ sourceSlug === $ mapping -> getLeftItem ( ) -> getSource ( ) -> getSlug ( ) ) { return $ mapping -> getLeftItem ( ) ; } return $ mapping -> getRightItem ( ) ; }
Get item by source.

@param MappingInterface $mapping
@param string $sourceSlug

@return MappingItemInterface
Get item by source .