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;
  }
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;
  }
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 ; }
Setter for items.

@param array $value
Items.

@return $this
Setter for items .