src/Algorithms.php
public function getClass($type, $name)
    {
        if (!is_string($type) || !isset($this->algos[$type])) {
            throw new \InvalidArgumentException();
        }
        if (!is_string($name)) {
            throw new \InvalidArgumentException();
        }
        if (!isset($this->algos[$type][$name])) {
            return null;
        }
        return $this->algos[$type][$name];
    }
public function getClass($type, $name)
    {
        if (!is_string($type) || !isset($this->algos[$type])) {
            throw new \InvalidArgumentException();
        }
        if (!is_string($name)) {
            throw new \InvalidArgumentException();
        }
        if (!isset($this->algos[$type][$name])) {
            return null;
        }
        return $this->algos[$type][$name];
    }
public function getClass ( $ type , $ name ) { if ( ! is_string ( $ type ) || ! isset ( $ this -> algos [ $ type ] ) ) { throw new \ InvalidArgumentException ( ) ; } if ( ! is_string ( $ name ) ) { throw new \ InvalidArgumentException ( ) ; } if ( ! isset ( $ this -> algos [ $ type ] [ $ name ] ) ) { return null ; } return $ this -> algos [ $ type ] [ $ name ] ; }
Get the class responsible for providing
the algorithm with the given type and name.

\param string $type
Type of algorithm to retrieve.

\param string $name
Name of the algorithm.

\retval string
Full name (with namespace) of the class
providing the given algorithm.

\retval null
No class provides an algorithm with the given
type and name.
Get the class responsible for providing the algorithm with the given type and name .