src/Charcoal/Cache/CacheBuilder.php
private function setLogger($logger)
    {
        $psr = 'Psr\\Log\\LoggerInterface';
        if (!is_a($logger, $psr)) {
            throw new InvalidArgumentException(
                sprintf('Expected an instance of %s', $psr)
            );
        }

        $this->logger = $logger;
    }
private function setLogger($logger)
    {
        $psr = 'Psr\\Log\\LoggerInterface';
        if (!is_a($logger, $psr)) {
            throw new InvalidArgumentException(
                sprintf('Expected an instance of %s', $psr)
            );
        }

        $this->logger = $logger;
    }
private function setLogger ( $ logger ) { $ psr = 'Psr\\Log\\LoggerInterface' ; if ( ! is_a ( $ logger , $ psr ) ) { throw new InvalidArgumentException ( sprintf ( 'Expected an instance of %s' , $ psr ) ) ; } $ this -> logger = $ logger ; }
Sets the specific PSR logging client to enable the tracking of errors.

@param  \Psr\Log\LoggerInterface $logger A PSR-3 logger.
@throws InvalidArgumentException If the logger is invalid PSR-3 client.
@return void
Sets the specific PSR logging client to enable the tracking of errors .