private function add(Algorithm $algorithm): self
    {
        $name = $algorithm->name();
        $this->algorithms[$name] = $algorithm;

        return $this;
    }
private function add(Algorithm $algorithm): self
    {
        $name = $algorithm->name();
        $this->algorithms[$name] = $algorithm;

        return $this;
    }
private function add ( Algorithm $ algorithm ) : self { $ name = $ algorithm -> name ( ) ; $ this -> algorithms [ $ name ] = $ algorithm ; return $ this ; }
Adds an algorithm to the manager.

@return AlgorithmManager
Adds an algorithm to the manager .