| Total Complexity | 3 |
| Total Lines | 38 |
| 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) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return callable|string |
||
| 45 | */ |
||
| 46 | protected function getMsg() |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return callable|string |
||
| 53 | */ |
||
| 54 | protected function getLevel() |
||
| 59 |