/** * Configures the newly created item with the passed options * * @param ItemInterface $item * @param array $options */ protected function configureItem(ItemInterface $item, array $options) { $item->setName($options['name'])->setDescription($options['description'])->setLatitude($options['latitude'])->setLongitude($options['longitude'])->setAttributes($options['attributes']); }