Browscap\Data\DataCollection::getLogger PHP Method

getLogger() public method

public getLogger ( ) : Psr\Log\LoggerInterface
return Psr\Log\LoggerInterface $logger
    public function getLogger()
    {
        return $this->logger;
    }

Usage Example

 /**
  * tests the setter and the getter for a logger
  *
  * @group data
  * @group sourcetest
  */
 public function testSetGetLogger()
 {
     $logger = $this->getMock('\\Monolog\\Logger', array(), array(), '', false);
     self::assertSame($this->object, $this->object->setLogger($logger));
     self::assertSame($logger, $this->object->getLogger());
 }
All Usage Examples Of Browscap\Data\DataCollection::getLogger