original_string: public function setCachedEntity($cachedEntity)
      {
          if (!is_string($cachedEntity) && !is_object($cachedEntity)) {
              Zend_Cache::throwException('cached_entity must be an object or a class name');
          }
          $this->_cachedEntity = $cachedEntity;
          $this->_specificOptions['cached_entity'] = $cachedEntity;
          if (is_string($this->_cachedEntity)){
              $this->_cachedEntityLabel = $this->_cachedEntity;
          } else {
              $ro = new ReflectionObject($this->_cachedEntity);
              $this->_cachedEntityLabel = $ro->getName();
          }
      }
code: public function setCachedEntity($cachedEntity)
      {
          if (!is_string($cachedEntity) && !is_object($cachedEntity)) {
              Zend_Cache::throwException('cached_entity must be an object or a class name');
          }
          $this->_cachedEntity = $cachedEntity;
          $this->_specificOptions['cached_entity'] = $cachedEntity;
          if (is_string($this->_cachedEntity)){
              $this->_cachedEntityLabel = $this->_cachedEntity;
          } else {
              $ro = new ReflectionObject($this->_cachedEntity);
              $this->_cachedEntityLabel = $ro->getName();
          }
      }
code_tokens: public function setCachedEntity ( $ cachedEntity ) { if ( ! is_string ( $ cachedEntity ) && ! is_object ( $ cachedEntity ) ) { Zend_Cache :: throwException ( 'cached_entity must be an object or a class name' ) ; } $ this -> _cachedEntity = $ cachedEntity ; $ this -> _specificOptions [ 'cached_entity' ] = $ cachedEntity ; if ( is_string ( $ this -> _cachedEntity ) ) { $ this -> _cachedEntityLabel = $ this -> _cachedEntity ; } else { $ ro = new ReflectionObject ( $ this -> _cachedEntity ) ; $ this -> _cachedEntityLabel = $ ro -> getName ( ) ; } }
docstring: Specific method to set the cachedEntity
  
  if set to a class name, we will cache an abstract class and will use only static calls
  if set to an object, we will cache this object methods
  
  @param mixed $cachedEntity
docstring_tokens: Specific method to set the cachedEntity