original_string: public function setItem($iid, array $properties=array(), $eventTime=null)
      {
          $eventTime = $this->getEventTime($eventTime);
          if (empty($properties)) {
              $properties = (object)$properties;
          }
          $json = json_encode([
              'event' => '$set',
              'entityType' => 'item',
              'entityId' => $iid,
              'properties' => $properties,
              'eventTime' => $eventTime,
          ]);
  
          return $this->sendRequest('POST', $this->eventUrl, $json);
      }
code: public function setItem($iid, array $properties=array(), $eventTime=null)
      {
          $eventTime = $this->getEventTime($eventTime);
          if (empty($properties)) {
              $properties = (object)$properties;
          }
          $json = json_encode([
              'event' => '$set',
              'entityType' => 'item',
              'entityId' => $iid,
              'properties' => $properties,
              'eventTime' => $eventTime,
          ]);
  
          return $this->sendRequest('POST', $this->eventUrl, $json);
      }
code_tokens: public function setItem ( $ iid , array $ properties = array ( ) , $ eventTime = null ) { $ eventTime = $ this -> getEventTime ( $ eventTime ) ; if ( empty ( $ properties ) ) { $ properties = ( object ) $ properties ; } $ json = json_encode ( [ 'event' => '$set' , 'entityType' => 'item' , 'entityId' => $ iid , 'properties' => $ properties , 'eventTime' => $ eventTime , ] ) ; return $ this -> sendRequest ( 'POST' , $ this -> eventUrl , $ json ) ; }
docstring: Set an item entity
  
  @param int|string Item Id
  @param array Properties of the item entity to set
  @param string Time of the event in ISO 8601 format
  (e.g. 2014-09-09T16:17:42.937-08:00).
  Default is the current time.
  
  @return string JSON response
  
  @throws PredictionIOAPIError Request error
docstring_tokens: Set an item entity