src/Tadcka/Mapper/Source/Type/SourceTypeRegistry.php
public function add(SourceTypeInterface $type, $alias)
    {
        if ($alias !== $type->getName()) {
            throw new SourceTypeException(sprintf('Mapper source type %s alias is not valid!', $alias));
        }

        $this->types[$alias] = $type;
    }
public function add(SourceTypeInterface $type, $alias)
    {
        if ($alias !== $type->getName()) {
            throw new SourceTypeException(sprintf('Mapper source type %s alias is not valid!', $alias));
        }

        $this->types[$alias] = $type;
    }
public function add ( SourceTypeInterface $ type , $ alias ) { if ( $ alias !== $ type -> getName ( ) ) { throw new SourceTypeException ( sprintf ( 'Mapper source type %s alias is not valid!' , $ alias ) ) ; } $ this -> types [ $ alias ] = $ type ; }
Add mapper source type.

@param SourceTypeInterface $type
@param string $alias

@throws SourceTypeException
Add mapper source type .