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 $method;
private $collection;
/** @var array */
private $filter;
/** @var int */
private $executionTime;
* LogEvent constructor.
public function __construct()
$this->collection = 'undefined';
$this->method = 'undefined';
$this->filter = [];
$this->executionTime = 0;
}
* @return string
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 getFilter(): array
return $this->filter;
public function getFilterJson(): string
return json_encode($this->filter);
* @param array $filter
public function setFilter(array $filter)
$this->filter = $filter;
* @return int
public function getExecutionTime(): int
return $this->executionTime;
* @param int $executionTime
public function setExecutionTime(int $executionTime)
$this->executionTime = $executionTime;