original_string: public function context($context = null)
      {
          if ($context instanceof ContextInterface) {
              $this->_context = $context;
          }
  
          return $this->_getContext();
      }
code: public function context($context = null)
      {
          if ($context instanceof ContextInterface) {
              $this->_context = $context;
          }
  
          return $this->_getContext();
      }
code_tokens: public function context ( $ context = null ) { if ( $ context instanceof ContextInterface ) { $ this -> _context = $ context ; } return $ this -> _getContext ( ) ; }
docstring: Get the context instance for the current form set.
  
  If there is no active form null will be returned.
  
  @param \Cake\View\Form\ContextInterface|null $context Either the new context when setting, or null to get.
  @return \Cake\View\Form\ContextInterface The context for the form.
docstring_tokens: Get the context instance for the current form set .