Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

IncludeReviewsSummary #158

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/ApaiIO/Operations/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,30 @@ public function setCondition($condition)

return $this;
}

/**
* Sets the IncludeReviewsSummary of the items to return: True | False
*
* Defaults to TRUE.
*
* @param string $condition
*
* @return \ApaiIO\Operations\Search
*/
public function setIncludeReviewsSummary($condition)
{
$this->parameters['IncludeReviewsSummary'] = $condition ? TRUE : FALSE;

return $this;
}

/**
* Returns the include reviews summary, True | False
*
* @return string
*/
public function getIncludeReviewsSummary()
{
return $this->getSingleOperationParameter('IncludeReviewsSummary');
}
}