for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Facile\MongoDbBundle\Services\Loggers\Model;
/**
* Class LogEvent.
*/
class LogEvent
{
/** @var string */
private $watchKey;
private $method;
private $collection;
/** @var array */
private $data;
/** @var int */
private $executionTime;
* LogEvent constructor.
public function __construct()
$this->watchKey = '';
$this->collection = 'undefined';
$this->method = 'undefined';
$this->data = [];
$this->executionTime = 0;
}
* @return string
public function getWatchKey(): string
return $this->watchKey;
* @param string $watchKey
public function setWatchKey(string $watchKey)
$this->watchKey = $watchKey;
public function getCollection(): string
return $this->collection;
* @param string $collection
public function setCollection(string $collection)
$this->collection = $collection;
public function getMethod(): string
return $this->method;
* @param string $method
public function setMethod(string $method)
$this->method = $method;
* @return array
public function getData(): array
return $this->data;
public function getDataJson(): string
return json_encode($this->data);
* @param array $data
public function setData(array $data)
$this->data = $data;
* @return int
public function getExecutionTime(): int
return $this->executionTime;
* @param int $executionTime
public function setExecutionTime(int $executionTime)
$this->executionTime = $executionTime;