src/Whoops/Handler/PlainTextHandler.php
public function setLogger($logger = null)
    {
        if (! (is_null($logger)
            || $logger instanceof LoggerInterface)) {
            throw new InvalidArgumentException(
                'Argument to ' . __METHOD__ .
                " must be a valid Logger Interface (aka. Monolog), " .
                get_class($logger) . ' given.'
            );
        }

        $this->logger = $logger;
    }
public function setLogger($logger = null)
    {
        if (! (is_null($logger)
            || $logger instanceof LoggerInterface)) {
            throw new InvalidArgumentException(
                'Argument to ' . __METHOD__ .
                " must be a valid Logger Interface (aka. Monolog), " .
                get_class($logger) . ' given.'
            );
        }

        $this->logger = $logger;
    }
public function setLogger ( $ logger = null ) { if ( ! ( is_null ( $ logger ) || $ logger instanceof LoggerInterface ) ) { throw new InvalidArgumentException ( 'Argument to ' . __METHOD__ . " must be a valid Logger Interface (aka. Monolog), " . get_class ( $ logger ) . ' given.' ) ; } $ this -> logger = $ logger ; }
Set the output logger interface.
@throws InvalidArgumentException     If argument is not null or a LoggerInterface
@param  \Psr\Log\LoggerInterface|null $logger
Set the output logger interface .