Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
233 lines (201 sloc) 3.53 KB
<?php
namespace deasilworks\Collector\CEF\Data\Model;
use deasilworks\CEF\EntityDataModel;
use JMS\Serializer\Annotation\Exclude;
/**
* Class LogDataModel
*
* Responsible for modeling log data stored
* in the log table of the database.
*/
class LogDataModel extends EntityDataModel
{
/**
* Overridden to supply a Table Name.
*
* @Exclude()
*
* @var string
*/
protected $tableName = 'log';
/**
* @var string
*/
protected $client;
/**
* @var string
*/
protected $type;
/**
* @var integer
*/
protected $day;
/**
* @var \DateTime
*/
protected $date;
/**
* @var string
*/
protected $event_uuid;
/**
* @var string
*/
protected $log_uuid;
/**
* @var string
*/
protected $level;
/**
* @var string
*/
protected $context;
/**
* @var string
*/
protected $payload;
/**
* @return string
*/
public function getClient()
{
return $this->client;
}
/**
* @param string $client
* @return LogDataModel
*/
public function setClient($client)
{
$this->client = $client;
return $this;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string $type
* @return LogDataModel
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int $day
* @return LogDataModel
*/
public function setDay($day)
{
$this->day = $day;
return $this;
}
/**
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* @param \DateTime $date
* @return LogDataModel
*/
public function setDate(\DateTime $date)
{
$this->date = $date;
return $this;
}
/**
* @return string
*/
public function getEventUuid()
{
return $this->event_uuid;
}
/**
* @param string $event_uuid
* @return LogDataModel
*/
public function setEventUuid($event_uuid)
{
$this->event_uuid = $event_uuid;
return $this;
}
/**
* @return string
*/
public function getLogUuid()
{
return $this->log_uuid;
}
/**
* @param string $log_uuid
* @return LogDataModel
*/
public function setLogUuid($log_uuid)
{
$this->log_uuid = $log_uuid;
return $this;
}
/**
* @return string
*/
public function getLevel()
{
return $this->level;
}
/**
* @param string $level
* @return LogDataModel
*/
public function setLevel($level)
{
$this->level = $level;
return $this;
}
/**
* @return string
*/
public function getContext()
{
return $this->context;
}
/**
* @param string $context
* @return LogDataModel
*/
public function setContext($context)
{
$this->context = $context;
return $this;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* @param string $payload
* @return LogDataModel
*/
public function setPayload($payload)
{
$this->payload = $payload;
return $this;
}
}
You can’t perform that action at this time.