| Total Complexity | 3 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 26 | class Trace implements \JsonSerializable { | 
            ||
| 27 | |||
| 28 | /** @var Array */  | 
            ||
| 29 | protected $result = [];  | 
            ||
| 30 | |||
| 31 | /** @var string */  | 
            ||
| 32 | protected $method;  | 
            ||
| 33 | |||
| 34 | public function __construct(  | 
            ||
| 35 | string $method,  | 
            ||
| 36 | string $payload = ''  | 
            ||
| 37 | 	) { | 
            ||
| 38 | $this->method = $method;  | 
            ||
| 39 | 		$this->log('Initialization', $payload); | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | 	public function log($operation, $payload = '') { | 
            ||
| 43 | $this->result[] = [  | 
            ||
| 44 | 'method' => $this->method,  | 
            ||
| 45 | 'time' => time(),  | 
            ||
| 46 | 'operation' => $operation,  | 
            ||
| 47 | 'payload' => $payload  | 
            ||
| 48 | ];  | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 51 | 	public function jsonSerialize(): array { | 
            ||
| 53 | }  | 
            ||
| 54 | }  | 
            ||
| 55 |