src/Algorithms.php
public function restore($type, $name)
    {
        if (!is_string($type) || !isset($this->algos[$type])) {
            throw new \InvalidArgumentException();
        }
        if (isset($this->savedAlgos[$type][$name])) {
            $this->algos[$type][$name] = $this->savedAlgos[$type][$name];
        }
        return $this;
    }
public function restore($type, $name)
    {
        if (!is_string($type) || !isset($this->algos[$type])) {
            throw new \InvalidArgumentException();
        }
        if (isset($this->savedAlgos[$type][$name])) {
            $this->algos[$type][$name] = $this->savedAlgos[$type][$name];
        }
        return $this;
    }
public function restore ( $ type , $ name ) { if ( ! is_string ( $ type ) || ! isset ( $ this -> algos [ $ type ] ) ) { throw new \ InvalidArgumentException ( ) ; } if ( isset ( $ this -> savedAlgos [ $ type ] [ $ name ] ) ) { $ this -> algos [ $ type ] [ $ name ] = $ this -> savedAlgos [ $ type ] [ $ name ] ; } return $ this ; }
Restore an algorithm.

Reset the class in charge of providing
a given algorithm to its initial value.

\param string $type
Algorithm type.

\param string $name
Name of the algorithm to restore.

\retval Algorithms
Returns the singleton.
Restore an algorithm .