public function addType($name, $fqcn)
    {
        if (true === $this->hasType($name)) {
            throw new InvalidArgumentException(sprintf('The type "%s" already exists.', $name));
        }
        return $this->setType($name, $fqcn);
    }
public function addType($name, $fqcn)
    {
        if (true === $this->hasType($name)) {
            throw new InvalidArgumentException(sprintf('The type "%s" already exists.', $name));
        }
        return $this->setType($name, $fqcn);
    }
public function addType ( $ name , $ fqcn ) { if ( true === $ this -> hasType ( $ name ) ) { throw new InvalidArgumentException ( sprintf ( 'The type "%s" already exists.' , $ name ) ) ; } return $ this -> setType ( $ name , $ fqcn ) ; }
Adds a type object.

@param   string      $name
@param   string      $fqcn
@return  self
@throws  InvalidArgumentException    If the type already exists.
Adds a type object .