public function getProvider($name)
    {
        if (isset($this->_providers[$name])) {
            return $this->_providers[$name];
        }
        if ($name !== 'default') {
            return null;
        }

        $this->_providers[$name] = new RulesProvider();

        return $this->_providers[$name];
    }
public function getProvider($name)
    {
        if (isset($this->_providers[$name])) {
            return $this->_providers[$name];
        }
        if ($name !== 'default') {
            return null;
        }

        $this->_providers[$name] = new RulesProvider();

        return $this->_providers[$name];
    }
public function getProvider ( $ name ) { if ( isset ( $ this -> _providers [ $ name ] ) ) { return $ this -> _providers [ $ name ] ; } if ( $ name !== 'default' ) { return null ; } $ this -> _providers [ $ name ] = new RulesProvider ( ) ; return $ this -> _providers [ $ name ] ; }
Returns the provider stored under that name if it exists.

@param string $name The name under which the provider should be set.
@return object|string|null
@throws \ReflectionException
Returns the provider stored under that name if it exists .