src/Entity/System/ApiResponseTime.php line 20

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\System;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass="App\Repository\System\ApiResponseTimeRepository")
  7. *
  8. * @ORM\Table(name="api_response_time",
  9. * indexes={
  10. *
  11. * @ORM\Index(name="url", columns={"url"}),
  12. * @ORM\Index(name="date_start", columns={"date_start"})
  13. * }
  14. * )
  15. */
  16. class ApiResponseTime
  17. {
  18. /**
  19. * @var int
  20. *
  21. * @ORM\Id
  22. *
  23. * @ORM\GeneratedValue(strategy="AUTO")
  24. *
  25. * @ORM\Column(type="integer", name="id")
  26. */
  27. private $id;
  28. /**
  29. * @var string
  30. *
  31. * @ORM\Column(type="string")
  32. */
  33. private $url;
  34. /**
  35. * @var \DateTime
  36. *
  37. * @ORM\Column(type="datetime")
  38. */
  39. private $dateStart;
  40. /**
  41. * @var \DateTime
  42. *
  43. * @ORM\Column(type="datetime")
  44. */
  45. private $dateEnd;
  46. /**
  47. * @var float
  48. *
  49. * @ORM\Column(type="float")
  50. */
  51. private $timeExecution;
  52. /**
  53. * @var int
  54. *
  55. * @ORM\Column(type="integer")
  56. */
  57. private $memoryPeak;
  58. /**
  59. * @var string
  60. *
  61. * @ORM\Column(type="string", length=10)
  62. */
  63. private $method;
  64. /**
  65. * @var Customer
  66. *
  67. * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerApi")
  68. *
  69. * @ORM\JoinColumn(name="customer_id", referencedColumnName="id_customer", nullable=false)
  70. */
  71. private $customer;
  72. public function getId(): int
  73. {
  74. return $this->id;
  75. }
  76. public function setId(int $id): ApiResponseTime
  77. {
  78. $this->id = $id;
  79. return $this;
  80. }
  81. public function getUrl(): string
  82. {
  83. return $this->url;
  84. }
  85. public function setUrl(string $url): ApiResponseTime
  86. {
  87. $this->url = $url;
  88. return $this;
  89. }
  90. public function getDateStart(): \DateTime
  91. {
  92. return $this->dateStart;
  93. }
  94. public function setDateStart(\DateTime $dateStart): ApiResponseTime
  95. {
  96. $this->dateStart = $dateStart;
  97. return $this;
  98. }
  99. public function getDateEnd(): \DateTime
  100. {
  101. return $this->dateEnd;
  102. }
  103. public function setDateEnd(\DateTime $dateEnd): ApiResponseTime
  104. {
  105. $this->dateEnd = $dateEnd;
  106. return $this;
  107. }
  108. public function getTimeExecution(): float
  109. {
  110. return $this->timeExecution;
  111. }
  112. public function setTimeExecution(float $timeExecution): ApiResponseTime
  113. {
  114. $this->timeExecution = $timeExecution;
  115. return $this;
  116. }
  117. public function getMemoryPeak(): int
  118. {
  119. return $this->memoryPeak;
  120. }
  121. public function setMemoryPeak(int $memoryPeak): ApiResponseTime
  122. {
  123. $this->memoryPeak = $memoryPeak;
  124. return $this;
  125. }
  126. public function getMethod(): string
  127. {
  128. return $this->method;
  129. }
  130. public function setMethod(string $method): ApiResponseTime
  131. {
  132. $this->method = $method;
  133. return $this;
  134. }
  135. public function getCustomer(): Customer
  136. {
  137. return $this->customer;
  138. }
  139. public function setCustomer(Customer $customer): ApiResponseTime
  140. {
  141. $this->customer = $customer;
  142. return $this;
  143. }
  144. }