aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/psr/log/src/LoggerAwareTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/psr/log/src/LoggerAwareTrait.php')
-rw-r--r--vendor/psr/log/src/LoggerAwareTrait.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/psr/log/src/LoggerAwareTrait.php b/vendor/psr/log/src/LoggerAwareTrait.php
new file mode 100644
index 000000000..5f1553a4c
--- /dev/null
+++ b/vendor/psr/log/src/LoggerAwareTrait.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Basic Implementation of LoggerAwareInterface.
+ */
+trait LoggerAwareTrait
+{
+ /**
+ * The logger instance.
+ *
+ * @var LoggerInterface|null
+ */
+ protected ?LoggerInterface $logger = null;
+
+ /**
+ * Sets a logger.
+ *
+ * @param LoggerInterface $logger
+ */
+ public function setLogger(LoggerInterface $logger)
+ {
+ $this->logger = $logger;
+ }
+}