public function add(TranslatorInterface $translator)
    {
        $hash = spl_object_hash($translator);

        $this->translators[$hash] = $translator;

        return $this;
    }
public function add(TranslatorInterface $translator)
    {
        $hash = spl_object_hash($translator);

        $this->translators[$hash] = $translator;

        return $this;
    }
public function add ( TranslatorInterface $ translator ) { $ hash = spl_object_hash ( $ translator ) ; $ this -> translators [ $ hash ] = $ translator ; return $ this ; }
Add a translator to the chain.

@param TranslatorInterface $translator The translator to add.

@return TranslatorChain
Add a translator to the chain .