original_string: public function setItems(array $value) {
      if (isset($value[0]) &&
          is_object($value[0]) &&
          !$value[0] instanceof GalleryItem
      ) {
        $this->triggerError('Object not of type GalleryItem');
      }
      else {
        $this->items = $value;
      }
      return $this;
    }
code: public function setItems(array $value) {
      if (isset($value[0]) &&
          is_object($value[0]) &&
          !$value[0] instanceof GalleryItem
      ) {
        $this->triggerError('Object not of type GalleryItem');
      }
      else {
        $this->items = $value;
      }
      return $this;
    }
code_tokens: public function setItems ( array $ value ) { if ( isset ( $ value [ 0 ] ) && is_object ( $ value [ 0 ] ) && ! $ value [ 0 ] instanceof GalleryItem ) { $ this -> triggerError ( 'Object not of type GalleryItem' ) ; } else { $ this -> items = $ value ; } return $ this ; }
docstring: Setter for items.
  
  @param array $value
  Items.
  
  @return $this
docstring_tokens: Setter for items .