for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* 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\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
}
* This method MUST return a valid PSR3 logger
* @return \Psr\Log\NullLogger
public function getLogger()
return new \Psr\Log\NullLogger;
* This method MUST return the name of the main class
* @return string
public function getMainClassName()
return '\Psr\Log\NullLogger';
* This method MUST return the name of the package name
public function getPackageName()
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.