src/Eccube/Entity/ErrorLogStatus.php line 26

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. if (!class_exists('\Eccube\Entity\ErrorLogStatus')) {
  15.     /**
  16.      * ErrorLogStatus
  17.      *
  18.      * @ORM\Table(name="dtb_error_log_status")
  19.      * @ORM\HasLifecycleCallbacks()
  20.      * @ORM\Entity(repositoryClass="Eccube\Repository\ErrorLogStatusRepository")
  21.      */
  22.     class ErrorLogStatus extends AbstractEntity
  23.     {
  24.         /**
  25.          * @var int
  26.          *
  27.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  28.          * @ORM\Id
  29.          * @ORM\GeneratedValue(strategy="IDENTITY")
  30.          */
  31.         private $id;
  32.         /**
  33.          * @var string
  34.          *
  35.          * @ORM\Column(name="log_hash", type="string", length=64, nullable=false, unique=true)
  36.          */
  37.         private $log_hash;
  38.         /**
  39.          * @var string
  40.          *
  41.          * @ORM\Column(name="error_level", type="string", length=50, nullable=true)
  42.          */
  43.         private $error_level;
  44.         /**
  45.          * @var string
  46.          *
  47.          * @ORM\Column(name="error_message", type="text", nullable=true)
  48.          */
  49.         private $error_message;
  50.         /**
  51.          * @var string
  52.          *
  53.          * @ORM\Column(name="error_file", type="string", length=500, nullable=true)
  54.          */
  55.         private $error_file;
  56.         /**
  57.          * @var int
  58.          *
  59.          * @ORM\Column(name="error_line", type="integer", nullable=true)
  60.          */
  61.         private $error_line;
  62.         /**
  63.          * @var string
  64.          *
  65.          * @ORM\Column(name="error_trace", type="text", nullable=true)
  66.          */
  67.         private $error_trace;
  68.         /**
  69.          * @var string
  70.          *
  71.          * @ORM\Column(name="request_url", type="string", length=1000, nullable=true)
  72.          */
  73.         private $request_url;
  74.         /**
  75.          * @var string
  76.          *
  77.          * @ORM\Column(name="request_method", type="string", length=10, nullable=true)
  78.          */
  79.         private $request_method;
  80.         /**
  81.          * @var bool
  82.          *
  83.          * @ORM\Column(name="is_checked", type="boolean", options={"default":false})
  84.          */
  85.         private $is_checked false;
  86.         /**
  87.          * @var \DateTime
  88.          *
  89.          * @ORM\Column(name="checked_date", type="datetimetz", nullable=true)
  90.          */
  91.         private $checked_date;
  92.         /**
  93.          * @var Member
  94.          *
  95.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
  96.          * @ORM\JoinColumns({
  97.          *   @ORM\JoinColumn(name="checked_by", referencedColumnName="id", onDelete="SET NULL")
  98.          * })
  99.          */
  100.         private $checked_by;
  101.         /**
  102.          * @var \DateTime
  103.          *
  104.          * @ORM\Column(name="create_date", type="datetimetz")
  105.          */
  106.         private $create_date;
  107.         /**
  108.          * @var \DateTime
  109.          *
  110.          * @ORM\Column(name="update_date", type="datetimetz")
  111.          */
  112.         private $update_date;
  113.         /**
  114.          * Get id
  115.          *
  116.          * @return integer
  117.          */
  118.         public function getId()
  119.         {
  120.             return $this->id;
  121.         }
  122.         /**
  123.          * Set log_hash
  124.          *
  125.          * @param string $logHash
  126.          *
  127.          * @return ErrorLogStatus
  128.          */
  129.         public function setLogHash($logHash)
  130.         {
  131.             $this->log_hash $logHash;
  132.             return $this;
  133.         }
  134.         /**
  135.          * Get log_hash
  136.          *
  137.          * @return string
  138.          */
  139.         public function getLogHash()
  140.         {
  141.             return $this->log_hash;
  142.         }
  143.         /**
  144.          * Set is_checked
  145.          *
  146.          * @param bool $isChecked
  147.          *
  148.          * @return ErrorLogStatus
  149.          */
  150.         public function setIsChecked($isChecked)
  151.         {
  152.             $this->is_checked $isChecked;
  153.             return $this;
  154.         }
  155.         /**
  156.          * Get is_checked
  157.          *
  158.          * @return bool
  159.          */
  160.         public function getIsChecked()
  161.         {
  162.             return $this->is_checked;
  163.         }
  164.         /**
  165.          * Set checked_date
  166.          *
  167.          * @param \DateTime $checkedDate
  168.          *
  169.          * @return ErrorLogStatus
  170.          */
  171.         public function setCheckedDate($checkedDate)
  172.         {
  173.             $this->checked_date $checkedDate;
  174.             return $this;
  175.         }
  176.         /**
  177.          * Get checked_date
  178.          *
  179.          * @return \DateTime
  180.          */
  181.         public function getCheckedDate()
  182.         {
  183.             return $this->checked_date;
  184.         }
  185.         /**
  186.          * Set checked_by
  187.          *
  188.          * @param Member $checkedBy
  189.          *
  190.          * @return ErrorLogStatus
  191.          */
  192.         public function setCheckedBy(Member $checkedBy null)
  193.         {
  194.             $this->checked_by $checkedBy;
  195.             return $this;
  196.         }
  197.         /**
  198.          * Get checked_by
  199.          *
  200.          * @return Member
  201.          */
  202.         public function getCheckedBy()
  203.         {
  204.             return $this->checked_by;
  205.         }
  206.         /**
  207.          * Set create_date
  208.          *
  209.          * @param \DateTime $createDate
  210.          *
  211.          * @return ErrorLogStatus
  212.          */
  213.         public function setCreateDate($createDate)
  214.         {
  215.             $this->create_date $createDate;
  216.             return $this;
  217.         }
  218.         /**
  219.          * Get create_date
  220.          *
  221.          * @return \DateTime
  222.          */
  223.         public function getCreateDate()
  224.         {
  225.             return $this->create_date;
  226.         }
  227.         /**
  228.          * Set update_date
  229.          *
  230.          * @param \DateTime $updateDate
  231.          *
  232.          * @return ErrorLogStatus
  233.          */
  234.         public function setUpdateDate($updateDate)
  235.         {
  236.             $this->update_date $updateDate;
  237.             return $this;
  238.         }
  239.         /**
  240.          * Get update_date
  241.          *
  242.          * @return \DateTime
  243.          */
  244.         public function getUpdateDate()
  245.         {
  246.             return $this->update_date;
  247.         }
  248.         /**
  249.          * Set error_level
  250.          *
  251.          * @param string $errorLevel
  252.          *
  253.          * @return ErrorLogStatus
  254.          */
  255.         public function setErrorLevel($errorLevel)
  256.         {
  257.             $this->error_level $errorLevel;
  258.             return $this;
  259.         }
  260.         /**
  261.          * Get error_level
  262.          *
  263.          * @return string
  264.          */
  265.         public function getErrorLevel()
  266.         {
  267.             return $this->error_level;
  268.         }
  269.         /**
  270.          * Set error_message
  271.          *
  272.          * @param string $errorMessage
  273.          *
  274.          * @return ErrorLogStatus
  275.          */
  276.         public function setErrorMessage($errorMessage)
  277.         {
  278.             $this->error_message $errorMessage;
  279.             return $this;
  280.         }
  281.         /**
  282.          * Get error_message
  283.          *
  284.          * @return string
  285.          */
  286.         public function getErrorMessage()
  287.         {
  288.             return $this->error_message;
  289.         }
  290.         /**
  291.          * Set error_file
  292.          *
  293.          * @param string $errorFile
  294.          *
  295.          * @return ErrorLogStatus
  296.          */
  297.         public function setErrorFile($errorFile)
  298.         {
  299.             $this->error_file $errorFile;
  300.             return $this;
  301.         }
  302.         /**
  303.          * Get error_file
  304.          *
  305.          * @return string
  306.          */
  307.         public function getErrorFile()
  308.         {
  309.             return $this->error_file;
  310.         }
  311.         /**
  312.          * Set error_line
  313.          *
  314.          * @param int $errorLine
  315.          *
  316.          * @return ErrorLogStatus
  317.          */
  318.         public function setErrorLine($errorLine)
  319.         {
  320.             $this->error_line $errorLine;
  321.             return $this;
  322.         }
  323.         /**
  324.          * Get error_line
  325.          *
  326.          * @return int
  327.          */
  328.         public function getErrorLine()
  329.         {
  330.             return $this->error_line;
  331.         }
  332.         /**
  333.          * Set error_trace
  334.          *
  335.          * @param string $errorTrace
  336.          *
  337.          * @return ErrorLogStatus
  338.          */
  339.         public function setErrorTrace($errorTrace)
  340.         {
  341.             $this->error_trace $errorTrace;
  342.             return $this;
  343.         }
  344.         /**
  345.          * Get error_trace
  346.          *
  347.          * @return string
  348.          */
  349.         public function getErrorTrace()
  350.         {
  351.             return $this->error_trace;
  352.         }
  353.         /**
  354.          * Set request_url
  355.          *
  356.          * @param string $requestUrl
  357.          *
  358.          * @return ErrorLogStatus
  359.          */
  360.         public function setRequestUrl($requestUrl)
  361.         {
  362.             $this->request_url $requestUrl;
  363.             return $this;
  364.         }
  365.         /**
  366.          * Get request_url
  367.          *
  368.          * @return string
  369.          */
  370.         public function getRequestUrl()
  371.         {
  372.             return $this->request_url;
  373.         }
  374.         /**
  375.          * Set request_method
  376.          *
  377.          * @param string $requestMethod
  378.          *
  379.          * @return ErrorLogStatus
  380.          */
  381.         public function setRequestMethod($requestMethod)
  382.         {
  383.             $this->request_method $requestMethod;
  384.             return $this;
  385.         }
  386.         /**
  387.          * Get request_method
  388.          *
  389.          * @return string
  390.          */
  391.         public function getRequestMethod()
  392.         {
  393.             return $this->request_method;
  394.         }
  395.     }
  396. }