<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\Entity;
use Doctrine\ORM\Mapping as ORM;
if (!class_exists('\Eccube\Entity\ErrorLogStatus')) {
/**
* ErrorLogStatus
*
* @ORM\Table(name="dtb_error_log_status")
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Eccube\Repository\ErrorLogStatusRepository")
*/
class ErrorLogStatus extends AbstractEntity
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="log_hash", type="string", length=64, nullable=false, unique=true)
*/
private $log_hash;
/**
* @var string
*
* @ORM\Column(name="error_level", type="string", length=50, nullable=true)
*/
private $error_level;
/**
* @var string
*
* @ORM\Column(name="error_message", type="text", nullable=true)
*/
private $error_message;
/**
* @var string
*
* @ORM\Column(name="error_file", type="string", length=500, nullable=true)
*/
private $error_file;
/**
* @var int
*
* @ORM\Column(name="error_line", type="integer", nullable=true)
*/
private $error_line;
/**
* @var string
*
* @ORM\Column(name="error_trace", type="text", nullable=true)
*/
private $error_trace;
/**
* @var string
*
* @ORM\Column(name="request_url", type="string", length=1000, nullable=true)
*/
private $request_url;
/**
* @var string
*
* @ORM\Column(name="request_method", type="string", length=10, nullable=true)
*/
private $request_method;
/**
* @var bool
*
* @ORM\Column(name="is_checked", type="boolean", options={"default":false})
*/
private $is_checked = false;
/**
* @var \DateTime
*
* @ORM\Column(name="checked_date", type="datetimetz", nullable=true)
*/
private $checked_date;
/**
* @var Member
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="checked_by", referencedColumnName="id", onDelete="SET NULL")
* })
*/
private $checked_by;
/**
* @var \DateTime
*
* @ORM\Column(name="create_date", type="datetimetz")
*/
private $create_date;
/**
* @var \DateTime
*
* @ORM\Column(name="update_date", type="datetimetz")
*/
private $update_date;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set log_hash
*
* @param string $logHash
*
* @return ErrorLogStatus
*/
public function setLogHash($logHash)
{
$this->log_hash = $logHash;
return $this;
}
/**
* Get log_hash
*
* @return string
*/
public function getLogHash()
{
return $this->log_hash;
}
/**
* Set is_checked
*
* @param bool $isChecked
*
* @return ErrorLogStatus
*/
public function setIsChecked($isChecked)
{
$this->is_checked = $isChecked;
return $this;
}
/**
* Get is_checked
*
* @return bool
*/
public function getIsChecked()
{
return $this->is_checked;
}
/**
* Set checked_date
*
* @param \DateTime $checkedDate
*
* @return ErrorLogStatus
*/
public function setCheckedDate($checkedDate)
{
$this->checked_date = $checkedDate;
return $this;
}
/**
* Get checked_date
*
* @return \DateTime
*/
public function getCheckedDate()
{
return $this->checked_date;
}
/**
* Set checked_by
*
* @param Member $checkedBy
*
* @return ErrorLogStatus
*/
public function setCheckedBy(Member $checkedBy = null)
{
$this->checked_by = $checkedBy;
return $this;
}
/**
* Get checked_by
*
* @return Member
*/
public function getCheckedBy()
{
return $this->checked_by;
}
/**
* Set create_date
*
* @param \DateTime $createDate
*
* @return ErrorLogStatus
*/
public function setCreateDate($createDate)
{
$this->create_date = $createDate;
return $this;
}
/**
* Get create_date
*
* @return \DateTime
*/
public function getCreateDate()
{
return $this->create_date;
}
/**
* Set update_date
*
* @param \DateTime $updateDate
*
* @return ErrorLogStatus
*/
public function setUpdateDate($updateDate)
{
$this->update_date = $updateDate;
return $this;
}
/**
* Get update_date
*
* @return \DateTime
*/
public function getUpdateDate()
{
return $this->update_date;
}
/**
* Set error_level
*
* @param string $errorLevel
*
* @return ErrorLogStatus
*/
public function setErrorLevel($errorLevel)
{
$this->error_level = $errorLevel;
return $this;
}
/**
* Get error_level
*
* @return string
*/
public function getErrorLevel()
{
return $this->error_level;
}
/**
* Set error_message
*
* @param string $errorMessage
*
* @return ErrorLogStatus
*/
public function setErrorMessage($errorMessage)
{
$this->error_message = $errorMessage;
return $this;
}
/**
* Get error_message
*
* @return string
*/
public function getErrorMessage()
{
return $this->error_message;
}
/**
* Set error_file
*
* @param string $errorFile
*
* @return ErrorLogStatus
*/
public function setErrorFile($errorFile)
{
$this->error_file = $errorFile;
return $this;
}
/**
* Get error_file
*
* @return string
*/
public function getErrorFile()
{
return $this->error_file;
}
/**
* Set error_line
*
* @param int $errorLine
*
* @return ErrorLogStatus
*/
public function setErrorLine($errorLine)
{
$this->error_line = $errorLine;
return $this;
}
/**
* Get error_line
*
* @return int
*/
public function getErrorLine()
{
return $this->error_line;
}
/**
* Set error_trace
*
* @param string $errorTrace
*
* @return ErrorLogStatus
*/
public function setErrorTrace($errorTrace)
{
$this->error_trace = $errorTrace;
return $this;
}
/**
* Get error_trace
*
* @return string
*/
public function getErrorTrace()
{
return $this->error_trace;
}
/**
* Set request_url
*
* @param string $requestUrl
*
* @return ErrorLogStatus
*/
public function setRequestUrl($requestUrl)
{
$this->request_url = $requestUrl;
return $this;
}
/**
* Get request_url
*
* @return string
*/
public function getRequestUrl()
{
return $this->request_url;
}
/**
* Set request_method
*
* @param string $requestMethod
*
* @return ErrorLogStatus
*/
public function setRequestMethod($requestMethod)
{
$this->request_method = $requestMethod;
return $this;
}
/**
* Get request_method
*
* @return string
*/
public function getRequestMethod()
{
return $this->request_method;
}
}
}