original_string: public function provider($name, $object = null)
      {
          deprecationWarning(
              'Validator::provider() is deprecated. ' .
              'Use Validator::setProvider()/getProvider() instead.'
          );
          if ($object !== null) {
              return $this->setProvider($name, $object);
          }
  
          return $this->getProvider($name);
      }
code: public function provider($name, $object = null)
      {
          deprecationWarning(
              'Validator::provider() is deprecated. ' .
              'Use Validator::setProvider()/getProvider() instead.'
          );
          if ($object !== null) {
              return $this->setProvider($name, $object);
          }
  
          return $this->getProvider($name);
      }
code_tokens: public function provider ( $ name , $ object = null ) { deprecationWarning ( 'Validator::provider() is deprecated. ' . 'Use Validator::setProvider()/getProvider() instead.' ) ; if ( $ object !== null ) { return $ this -> setProvider ( $ name , $ object ) ; } return $ this -> getProvider ( $ name ) ; }
docstring: Associates an object to a name so it can be used as a provider. Providers are
  objects or class names that can contain methods used during validation of for
  deciding whether a validation rule can be applied. All validation methods,
  when called will receive the full list of providers stored in this validator.
  
  If called with no arguments, it will return the provider stored under that name if
  it exists, otherwise it returns this instance of chaining.
  
  @deprecated 3.4.0 Use setProvider()/getProvider() instead.
  @param string $name The name under which the provider should be set.
  @param null|object|string $object Provider object or class name.
  @return $this|object|string|null
docstring_tokens: Associates an object to a name so it can be used as a provider . Providers are objects or class names that can contain methods used during validation of for deciding whether a validation rule can be applied . All validation methods when called will receive the full list of providers stored in this validator .