public function setItemMeta(ResourceInterface $resource, $cursor) {
		$metadata = [
			'cursor' => $cursor,
		];
		
		if ($resource instanceof ResourceDocument) {
			$resource->addMeta($this->getKeyword('page'), $metadata, $level=Document::LEVEL_RESOURCE);
		}
		else {
			$resource->addMeta($this->getKeyword('page'), $metadata);
		}
	}
public function setItemMeta(ResourceInterface $resource, $cursor) {
		$metadata = [
			'cursor' => $cursor,
		];
		
		if ($resource instanceof ResourceDocument) {
			$resource->addMeta($this->getKeyword('page'), $metadata, $level=Document::LEVEL_RESOURCE);
		}
		else {
			$resource->addMeta($this->getKeyword('page'), $metadata);
		}
	}
public function setItemMeta ( ResourceInterface $ resource , $ cursor ) { $ metadata = [ 'cursor' => $ cursor , ] ; if ( $ resource instanceof ResourceDocument ) { $ resource -> addMeta ( $ this -> getKeyword ( 'page' ) , $ metadata , $ level = Document :: LEVEL_RESOURCE ) ; } else { $ resource -> addMeta ( $ this -> getKeyword ( 'page' ) , $ metadata ) ; } }
pagination item metadata is the page meta at the top-level of a paginated item

ends up at one of:
- /data/meta/page
- /data/relationships/foo/meta/page
- /data/0/relationships/foo/meta/page

@see https://jsonapi.org/profiles/ethanresnick/cursor-pagination/#terms-pagination-item-metadata

@param ResourceInterface $resource
@param string            $cursor
pagination item metadata is the page meta at the top - level of a paginated item