/**
  * Add an input
  *
  * @param AbstractInput $input
  * @throws UnexpectedValueException
  */
 function addInput(AbstractInput $input)
 {
     if (!$input instanceof DocumentInput) {
         throw new UnexpectedValueException('The input must be a DocumentInput');
     }
     /**
      * @var $input DocumentInput
      */
     $data = array('uri' => $input->getURI(), 'word_length' => $input->getWordLength());
     $this->inputs[] = $data;
 }
 /**
  * Add an input
  *
  * @param AbstractInput $input
  * @throws UnexpectedValueException
  */
 function addInput(AbstractInput $input)
 {
     if (!$input instanceof VideoInput) {
         throw new UnexpectedValueException('The input must be a VideoInput');
     }
     /**
      * @var $input VideoInput
      */
     $data = array('uri' => $input->getURI());
     if (null !== $input->getVideoLength()) {
         $data['video_length_seconds'] = $input->getVideoLength();
     }
     $this->inputs[] = $data;
 }