Cake\ElasticSearch\TypeRegistry::set PHP Method

set() public static method

Set an instance.
public static set ( string $alias, Type $object ) : Type
$alias string The alias to set.
$object Type The type to set.
return Type
    public static function set($alias, Type $object)
    {
        return static::$instances[$alias] = $object;
    }