From 328f8914c983115c9cd827d1b0adf3fac19b90ec Mon Sep 17 00:00:00 2001 From: Valdeci Jr Date: Fri, 8 Jun 2018 12:21:44 -0300 Subject: [PATCH] Use Psr\Log\LoggerInterface instead of Monolog\Logger class --- src/SambaVideos/AbstractResource.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/SambaVideos/AbstractResource.php b/src/SambaVideos/AbstractResource.php index 05edee0..1b3cb34 100644 --- a/src/SambaVideos/AbstractResource.php +++ b/src/SambaVideos/AbstractResource.php @@ -17,7 +17,7 @@ namespace SambaVideos; -use Monolog\Logger; +use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use SambaVideos\Exception\RequestException; use Unirest\Exception; @@ -40,7 +40,7 @@ abstract class AbstractResource /** @var Response */ protected $response; - /** @var Logger */ + /** @var LoggerInterface */ protected $logger; /** @var int */ @@ -251,7 +251,7 @@ protected function createRequestException($message, $code = null, $previous = nu } /** - * @return Logger + * @return LoggerInterface */ public function getLogger() { @@ -263,11 +263,11 @@ public function getLogger() } /** - * @param Logger $logger + * @param LoggerInterface $logger * * @return AbstractResource */ - public function setLogger($logger) + public function setLogger(LoggerInterface $logger) { $this->logger = $logger; @@ -275,19 +275,19 @@ public function setLogger($logger) } /** - * @return int + * @return mixed */ public function getLoggerLevel() { if (empty($this->logger_level)) { - $this->logger_level = Logger::ERROR; + $this->logger_level = 'error'; } return $this->logger_level; } /** - * @param int $logger_level + * @param mixed $logger_level * * @return AbstractResource */