<?phpdeclare(strict_types=1);namespace App\Entity\System;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\System\ApiResponseTimeRepository") * * @ORM\Table(name="api_response_time", * indexes={ * * @ORM\Index(name="url", columns={"url"}), * @ORM\Index(name="date_start", columns={"date_start"}) * } * ) */class ApiResponseTime{ /** * @var int * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") * * @ORM\Column(type="integer", name="id") */ private $id; /** * @var string * * @ORM\Column(type="string") */ private $url; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $dateStart; /** * @var \DateTime * * @ORM\Column(type="datetime") */ private $dateEnd; /** * @var float * * @ORM\Column(type="float") */ private $timeExecution; /** * @var int * * @ORM\Column(type="integer") */ private $memoryPeak; /** * @var string * * @ORM\Column(type="string", length=10) */ private $method; /** * @var Customer * * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerApi") * * @ORM\JoinColumn(name="customer_id", referencedColumnName="id_customer", nullable=false) */ private $customer; public function getId(): int { return $this->id; } public function setId(int $id): ApiResponseTime { $this->id = $id; return $this; } public function getUrl(): string { return $this->url; } public function setUrl(string $url): ApiResponseTime { $this->url = $url; return $this; } public function getDateStart(): \DateTime { return $this->dateStart; } public function setDateStart(\DateTime $dateStart): ApiResponseTime { $this->dateStart = $dateStart; return $this; } public function getDateEnd(): \DateTime { return $this->dateEnd; } public function setDateEnd(\DateTime $dateEnd): ApiResponseTime { $this->dateEnd = $dateEnd; return $this; } public function getTimeExecution(): float { return $this->timeExecution; } public function setTimeExecution(float $timeExecution): ApiResponseTime { $this->timeExecution = $timeExecution; return $this; } public function getMemoryPeak(): int { return $this->memoryPeak; } public function setMemoryPeak(int $memoryPeak): ApiResponseTime { $this->memoryPeak = $memoryPeak; return $this; } public function getMethod(): string { return $this->method; } public function setMethod(string $method): ApiResponseTime { $this->method = $method; return $this; } public function getCustomer(): Customer { return $this->customer; } public function setCustomer(Customer $customer): ApiResponseTime { $this->customer = $customer; return $this; }}