original_string: public function contextFactory(ContextFactory $instance = null, array $contexts = [])
      {
          if ($instance === null) {
              if ($this->_contextFactory === null) {
                  $this->_contextFactory = ContextFactory::createWithDefaults($contexts);
              }
  
              return $this->_contextFactory;
          }
          $this->_contextFactory = $instance;
  
          return $this->_contextFactory;
      }
code: public function contextFactory(ContextFactory $instance = null, array $contexts = [])
      {
          if ($instance === null) {
              if ($this->_contextFactory === null) {
                  $this->_contextFactory = ContextFactory::createWithDefaults($contexts);
              }
  
              return $this->_contextFactory;
          }
          $this->_contextFactory = $instance;
  
          return $this->_contextFactory;
      }
code_tokens: public function contextFactory ( ContextFactory $ instance = null , array $ contexts = [ ] ) { if ( $ instance === null ) { if ( $ this -> _contextFactory === null ) { $ this -> _contextFactory = ContextFactory :: createWithDefaults ( $ contexts ) ; } return $ this -> _contextFactory ; } $ this -> _contextFactory = $ instance ; return $ this -> _contextFactory ; }
docstring: Set the context factory the helper will use.
  
  @param \Cake\View\Form\ContextFactory|null $instance The context factory instance to set.
  @param array $contexts An array of context providers.
  @return \Cake\View\Form\ContextFactory
docstring_tokens: Set the context factory the helper will use .