for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/*
* This file is part of the feed-io package.
*
* (c) Alexandre Debril <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FeedIo\Factory\Builder;
use FeedIo\Factory\LoggerBuilderInterface;
use Psr\Log\LoggerInterface;
use \Psr\Log\NullLogger;
/**
* @package FeedIo
class NullLoggerBuilder implements LoggerBuilderInterface
{
* @param array $config
public function __construct(array $config = [])
$config
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
// Ignore config as NullLogger does not accept any config
// Done for FeedIo\Factory compatibility
}
* @inheritdoc
public function getLogger() : LoggerInterface
return new \Psr\Log\NullLogger;
* This method MUST return the name of the main class
* @return string
public function getMainClassName() : string
return '\Psr\Log\NullLogger';
* This method MUST return the name of the package name
public function getPackageName() : string
return 'psr/log';
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.