Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Preflight / PreflightLog.php
1 <?php
2
3 namespace Drush\Preflight;
4
5 class PreflightLog
6 {
7
8     protected $debug;
9
10     /**
11      * @return bool
12      */
13     public function getDebug()
14     {
15         return $this->debug;
16     }
17
18     /**
19      * @param bool $debug
20      */
21     public function setDebug($debug)
22     {
23         $this->debug = $debug;
24         return $this;
25     }
26
27     public function log($message)
28     {
29         if ($this->getDebug()) {
30             fwrite(STDERR, ' [preflight] ' . $message . "\n");
31         }
32     }
33 }