original_string: public function getQueueableConnection()
      {
          if ($this->isEmpty()) {
              return;
          }
  
          $connection = $this->first()->getConnectionName();
  
          $this->each(function ($model) use ($connection) {
              if ($model->getConnectionName() !== $connection) {
                  throw new LogicException('Queueing collections with multiple model connections is not supported.');
              }
          });
  
          return $connection;
      }
code: public function getQueueableConnection()
      {
          if ($this->isEmpty()) {
              return;
          }
  
          $connection = $this->first()->getConnectionName();
  
          $this->each(function ($model) use ($connection) {
              if ($model->getConnectionName() !== $connection) {
                  throw new LogicException('Queueing collections with multiple model connections is not supported.');
              }
          });
  
          return $connection;
      }
code_tokens: public function getQueueableConnection ( ) { if ( $ this -> isEmpty ( ) ) { return ; } $ connection = $ this -> first ( ) -> getConnectionName ( ) ; $ this -> each ( function ( $ model ) use ( $ connection ) { if ( $ model -> getConnectionName ( ) !== $ connection ) { throw new LogicException ( 'Queueing collections with multiple model connections is not supported.' ) ; } } ) ; return $ connection ; }
docstring: Get the connection of the entities being queued.
  
  @return string|null
  
  @throws \LogicException
docstring_tokens: Get the connection of the entities being queued .