| Total Complexity | 1 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | trait FormatterConstructorTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string|callable |
||
| 23 | */ |
||
| 24 | private $msg; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string|callable |
||
| 28 | */ |
||
| 29 | private $level; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * StartFormatter constructor. |
||
| 33 | * |
||
| 34 | * @param callable $msg A callable used to create the message |
||
| 35 | * @param callable|string $level The level this should be logged at |
||
| 36 | */ |
||
| 37 | private function __construct(callable $msg, $level = LogLevel::DEBUG) |
||
| 43 |