MAKS\AmqpAgent\Worker\AbstractWorker::getConnection
        Returns the default connection of the worker. If the worker is not connected, it returns null.
        
        
        Signature
        
          public function getConnection()
            
        
        Returns
        
          - AMQPStreamConnection|null
 
Defined by Interface
        
          
            AbstractWorkerInterface
          
        
        Test Coverage
        
          Information
          
            - Coverage: 1/1 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
          
            - [ PASSED ] — MAKS\AmqpAgent\Tests\Worker\AbstractWorkerTest::testGetConnectionReturnsTheDefaultConnection
- [ PASSED ] — MAKS\AmqpAgent\Tests\Worker\AbstractWorkerTest::testSetConnectionSetsAnotherConnectionAsDefaultAndReturnsSelf
- [ PASSED ] — MAKS\AmqpAgent\Tests\Worker\AbstractWorkerTest::testWorkerShutdownFunction
- [ PASSED ] — MAKS\AmqpAgent\Tests\Worker\PublisherSingletonTest::testSingletonInstanceWhenCallingStaticMethod