original_string: public function addTag(Dklab_Cache_Frontend_Tag $tag)
      {
          if ($tag->getBackend() !== $this->_getBackend()) {
              \Zend_Cache::throwException("Backends for tag " . get_class($tag) . " and slot " . get_class($this) . " must be same");
          }
          $this->_tags[] = $tag;
      }
code: public function addTag(Dklab_Cache_Frontend_Tag $tag)
      {
          if ($tag->getBackend() !== $this->_getBackend()) {
              \Zend_Cache::throwException("Backends for tag " . get_class($tag) . " and slot " . get_class($this) . " must be same");
          }
          $this->_tags[] = $tag;
      }
code_tokens: public function addTag ( Dklab_Cache_Frontend_Tag $ tag ) { if ( $ tag -> getBackend ( ) !== $ this -> _getBackend ( ) ) { \ Zend_Cache :: throwException ( "Backends for tag " . get_class ( $ tag ) . " and slot " . get_class ( $ this ) . " must be same" ) ; } $ this -> _tags [ ] = $ tag ; }
docstring: Associates a tag with current slot.
  
  @param Dklab_Cache_Tag $tag   Tag object to associate.
  @return void
docstring_tokens: Associates a tag with current slot .