public function addToNewsRelatedSearch(\Api\StructType\ApiNewsRelatedSearch $item)
{
// validation for constraint: itemType
if (!$item instanceof \Api\StructType\ApiNewsRelatedSearch) {
throw new \InvalidArgumentException(sprintf('The NewsRelatedSearch property can only contain items of \\Api\\StructType\\ApiNewsRelatedSearch, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->NewsRelatedSearch[] = $item;
return $this;
}