/**
  * {@inheritdoc}
  */
 protected function validateOptionBag(OptionBag $optionBag)
 {
     parent::validateOptionBag($optionBag);
     if (!isset($optionBag['user_id']) && !isset($optionBag['screen_name'])) {
         throw new \RuntimeException('You must provide a user id or screen name.');
     }
     if (isset($optionBag['user_id'])) {
         unset($optionBag['screen_name']);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     parent::configureOptionBag($optionBag);
     $optionBag->register('cursor');
 }