original_string: public function getOptionsModel()
      {
          $model = $this->options;
  
          if (is_string($model)) {
              $model = app($model);
          }
  
          if (! ($model instanceof Model)) {
              throw new InvalidArgumentException(
                  sprintf(
                      'The %s element[%s] options class must be instanced of "%s".',
                      $this->getType(),
                      $this->getName(),
                      Model::class
                  )
              );
          }
  
          return $model;
      }
code: public function getOptionsModel()
      {
          $model = $this->options;
  
          if (is_string($model)) {
              $model = app($model);
          }
  
          if (! ($model instanceof Model)) {
              throw new InvalidArgumentException(
                  sprintf(
                      'The %s element[%s] options class must be instanced of "%s".',
                      $this->getType(),
                      $this->getName(),
                      Model::class
                  )
              );
          }
  
          return $model;
      }
code_tokens: public function getOptionsModel ( ) { $ model = $ this -> options ; if ( is_string ( $ model ) ) { $ model = app ( $ model ) ; } if ( ! ( $ model instanceof Model ) ) { throw new InvalidArgumentException ( sprintf ( 'The %s element[%s] options class must be instanced of "%s".' , $ this -> getType ( ) , $ this -> getName ( ) , Model :: class ) ) ; } return $ model ; }
docstring: Get the options model.
  
  @return Model
docstring_tokens: Get the options model .