src/Profile/Factory.php
public static function define($alias, $class)
    {
        $reflection = new \ReflectionClass($class);

        if (!$reflection->isSubclassOf('Predis\Profile\ProfileInterface')) {
            throw new \InvalidArgumentException("The class '$class' is not a valid profile class.");
        }

        self::$profiles[$alias] = $class;
    }
public static function define($alias, $class)
    {
        $reflection = new \ReflectionClass($class);

        if (!$reflection->isSubclassOf('Predis\Profile\ProfileInterface')) {
            throw new \InvalidArgumentException("The class '$class' is not a valid profile class.");
        }

        self::$profiles[$alias] = $class;
    }
public static function define ( $ alias , $ class ) { $ reflection = new \ ReflectionClass ( $ class ) ; if ( ! $ reflection -> isSubclassOf ( 'Predis\Profile\ProfileInterface' ) ) { throw new \ InvalidArgumentException ( "The class '$class' is not a valid profile class." ) ; } self :: $ profiles [ $ alias ] = $ class ; }
Registers a new server profile.

@param string $alias Profile version or alias.
@param string $class FQN of a class implementing Predis\Profile\ProfileInterface.

@throws \InvalidArgumentException
Registers a new server profile .