original_string: private function validateUnderlyingObjectType($object)
      {
          if (count($this->mustBeInstanceOf) == 0) {
              return true;
          }
          foreach ($this->mustBeInstanceOf as $instance) {
              if ($object instanceof $instance) { //|| $object->asa($instance) !== null
                  return true;
              }
          }
          Yii::error('Got invalid underlying object type! (' . $object->className() . ')');
          return false;
      }
code: private function validateUnderlyingObjectType($object)
      {
          if (count($this->mustBeInstanceOf) == 0) {
              return true;
          }
          foreach ($this->mustBeInstanceOf as $instance) {
              if ($object instanceof $instance) { //|| $object->asa($instance) !== null
                  return true;
              }
          }
          Yii::error('Got invalid underlying object type! (' . $object->className() . ')');
          return false;
      }
code_tokens: private function validateUnderlyingObjectType ( $ object ) { if ( count ( $ this -> mustBeInstanceOf ) == 0 ) { return true ; } foreach ( $ this -> mustBeInstanceOf as $ instance ) { if ( $ object instanceof $ instance ) { //|| $object->asa($instance) !== null return true ; } } Yii :: error ( 'Got invalid underlying object type! (' . $ object -> className ( ) . ')' ) ; return false ; }
docstring: Validates if given object is of allowed type
  
  @param mixed $object
  @return boolean
docstring_tokens: Validates if given object is of allowed type