src/IrcConnection.php
public function setURIFactory($factory)
    {
        $reflector = new \ReflectionClass($factory);
        if (!$reflector->implementsInterface('\\Erebot\\URIInterface')) {
            throw new \Erebot\InvalidValueException(
                'The factory must implement \\Erebot\\URIInterface'
            );
        }
        $this->uriFactory = $factory;
    }
public function setURIFactory($factory)
    {
        $reflector = new \ReflectionClass($factory);
        if (!$reflector->implementsInterface('\\Erebot\\URIInterface')) {
            throw new \Erebot\InvalidValueException(
                'The factory must implement \\Erebot\\URIInterface'
            );
        }
        $this->uriFactory = $factory;
    }
public function setURIFactory ( $ factory ) { $ reflector = new \ ReflectionClass ( $ factory ) ; if ( ! $ reflector -> implementsInterface ( '\\Erebot\\URIInterface' ) ) { throw new \ Erebot \ InvalidValueException ( 'The factory must implement \\Erebot\\URIInterface' ) ; } $ this -> uriFactory = $ factory ; }
Sets the class to use as a factory
to parse Uniform Resource Identifiers.

\param string $factory
Name of the class to use to parse an URI.
Sets the class to use as a factory to parse Uniform Resource Identifiers .