Logger draft

This commit is contained in:
Dennis Eichhorn 2016-08-12 15:07:59 +02:00
parent b3a6ee3d2f
commit 5c339221b9
2 changed files with 34 additions and 0 deletions

34
Models/Log.php Normal file
View File

@ -0,0 +1,34 @@
<?php
class Log implements \JsonSerializable
{
private $id = 0;
private $createdAt = null;
private $createdBy = null;
private $raw = '';
private $layout = 0;
public function __construct(string $message = '', int $layout = 0)
{
}
public function get(string $key) : string
{
return '';
}
public function toArray() : array
{
return [];
}
public function jsonSerialize()
{
return json_encode($this->toArray());
}
}

0
Models/LogMapper.php Normal file
View File