/**
  * Creates an data array the is send by postRequest for a stopword
  *
  * @param \Searchperience\Api\Client\Domain\AbstractEntity $stopword
  * @return array
  */
 protected function buildRequestArray(\Searchperience\Api\Client\Domain\AbstractEntity $stopword)
 {
     $valueArray = array();
     /** @var \Searchperience\Api\Client\Domain\Stopword\Stopword $stopword */
     if (!is_null($stopword->getWord())) {
         $valueArray['word'] = $stopword->getWord();
     }
     if (!is_null($stopword->getTagName())) {
         $valueArray['tagName'] = $stopword->getTagName();
     }
     return $valueArray;
 }