From 96fdc5689323fe0df251ee5924bd4285b24b1971 Mon Sep 17 00:00:00 2001 From: Maxiser Date: Fri, 11 Oct 2024 20:45:27 +0200 Subject: [PATCH] remplissage des entity et des repository --- .idea/.gitignore | 8 ++ .idea/HegreEtConfort.iml | 141 ++++++++++++++++++++++++++++++++ .idea/modules.xml | 8 ++ .idea/php.xml | 159 ++++++++++++++++++++++++++++++++++++ .idea/phpunit.xml | 10 +++ .idea/vcs.xml | 7 ++ src/Entity/Fault.php | 15 ++++ src/Entity/Intervention.php | 76 +++++++++++++++++ src/Entity/Skill.php | 30 +++++++ src/Entity/Stock.php | 45 ++++++++++ src/Entity/User.php | 91 +++++++++++++++++++++ src/Entity/Vehicle.php | 30 +++++++ 12 files changed, 620 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/HegreEtConfort.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/phpunit.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/HegreEtConfort.iml b/.idea/HegreEtConfort.iml new file mode 100644 index 0000000..f4221e4 --- /dev/null +++ b/.idea/HegreEtConfort.iml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5dc7e8f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..31afc36 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml new file mode 100644 index 0000000..4f8104c --- /dev/null +++ b/.idea/phpunit.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..b66348b --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/Entity/Fault.php b/src/Entity/Fault.php index 77a37fb..7842413 100644 --- a/src/Entity/Fault.php +++ b/src/Entity/Fault.php @@ -13,8 +13,23 @@ class Fault #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 255)] + private ?string $Wording = null; + public function getId(): ?int { return $this->id; } + + public function getWording(): ?string + { + return $this->Wording; + } + + public function setWording(string $Wording): static + { + $this->Wording = $Wording; + + return $this; + } } diff --git a/src/Entity/Intervention.php b/src/Entity/Intervention.php index ca9c4b7..51fde19 100644 --- a/src/Entity/Intervention.php +++ b/src/Entity/Intervention.php @@ -3,6 +3,7 @@ namespace App\Entity; use App\Repository\InterventionRepository; +use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: InterventionRepository::class)] @@ -13,8 +14,83 @@ class Intervention #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 255)] + private ?string $Wording = null; + + #[ORM\Column(type: Types::DATETIME_MUTABLE)] + private ?\DateTimeInterface $Timestamp = null; + + #[ORM\Column(length: 255)] + private ?string $Description = null; + + #[ORM\Column(length: 255)] + private ?string $Address = null; + + #[ORM\Column(length: 255)] + private ?string $Status = null; + public function getId(): ?int { return $this->id; } + + public function getWording(): ?string + { + return $this->Wording; + } + + public function setWording(string $Wording): static + { + $this->Wording = $Wording; + + return $this; + } + + public function getTimestamp(): ?\DateTimeInterface + { + return $this->Timestamp; + } + + public function setTimestamp(\DateTimeInterface $Timestamp): static + { + $this->Timestamp = $Timestamp; + + return $this; + } + + public function getDescription(): ?string + { + return $this->Description; + } + + public function setDescription(string $Description): static + { + $this->Description = $Description; + + return $this; + } + + public function getAddress(): ?string + { + return $this->Address; + } + + public function setAddress(string $Address): static + { + $this->Address = $Address; + + return $this; + } + + public function getStatus(): ?string + { + return $this->Status; + } + + public function setStatus(string $Status): static + { + $this->Status = $Status; + + return $this; + } } diff --git a/src/Entity/Skill.php b/src/Entity/Skill.php index 4181f12..ca8c6a3 100644 --- a/src/Entity/Skill.php +++ b/src/Entity/Skill.php @@ -13,8 +13,38 @@ class Skill #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 255)] + private ?string $Wording = null; + + #[ORM\Column(length: 255)] + private ?string $Description = null; + public function getId(): ?int { return $this->id; } + + public function getWording(): ?string + { + return $this->Wording; + } + + public function setWording(string $Wording): static + { + $this->Wording = $Wording; + + return $this; + } + + public function getDescription(): ?string + { + return $this->Description; + } + + public function setDescription(string $Description): static + { + $this->Description = $Description; + + return $this; + } } diff --git a/src/Entity/Stock.php b/src/Entity/Stock.php index adebdbf..106e16f 100644 --- a/src/Entity/Stock.php +++ b/src/Entity/Stock.php @@ -13,8 +13,53 @@ class Stock #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 255)] + private ?string $Wording = null; + + #[ORM\Column(length: 255)] + private ?string $Description = null; + + #[ORM\Column(length: 255)] + private ?string $Quantity = null; + public function getId(): ?int { return $this->id; } + + public function getWording(): ?string + { + return $this->Wording; + } + + public function setWording(string $Wording): static + { + $this->Wording = $Wording; + + return $this; + } + + public function getDescription(): ?string + { + return $this->Description; + } + + public function setDescription(string $Description): static + { + $this->Description = $Description; + + return $this; + } + + public function getQuantity(): ?string + { + return $this->Quantity; + } + + public function setQuantity(string $Quantity): static + { + $this->Quantity = $Quantity; + + return $this; + } } diff --git a/src/Entity/User.php b/src/Entity/User.php index 38ad03a..3a2f4d1 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -3,6 +3,7 @@ namespace App\Entity; use App\Repository\UserRepository; +use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: UserRepository::class)] @@ -14,8 +15,98 @@ class User #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 255)] + private ?string $FirstName = null; + + #[ORM\Column(length: 255)] + private ?string $LastName = null; + + #[ORM\Column(type: Types::DATE_MUTABLE)] + private ?\DateTimeInterface $BirthDate = null; + + #[ORM\Column(length: 255)] + private ?string $Email = null; + + #[ORM\Column(length: 255)] + private ?string $Phone = null; + + #[ORM\Column(length: 255)] + private ?string $Type = null; + public function getId(): ?int { return $this->id; } + + public function getFirstName(): ?string + { + return $this->FirstName; + } + + public function setFirstName(string $FirstName): static + { + $this->FirstName = $FirstName; + + return $this; + } + + public function getLastName(): ?string + { + return $this->LastName; + } + + public function setLastName(string $LastName): static + { + $this->LastName = $LastName; + + return $this; + } + + public function getBirthDate(): ?\DateTimeInterface + { + return $this->BirthDate; + } + + public function setBirthDate(\DateTimeInterface $BirthDate): static + { + $this->BirthDate = $BirthDate; + + return $this; + } + + public function getEmail(): ?string + { + return $this->Email; + } + + public function setEmail(string $Email): static + { + $this->Email = $Email; + + return $this; + } + + public function getPhone(): ?string + { + return $this->Phone; + } + + public function setPhone(string $Phone): static + { + $this->Phone = $Phone; + + return $this; + } + + public function getType(): ?string + { + return $this->Type; + } + + public function setType(string $Type): static + { + $this->Type = $Type; + + return $this; + } } diff --git a/src/Entity/Vehicle.php b/src/Entity/Vehicle.php index 8ef263c..6f6a178 100644 --- a/src/Entity/Vehicle.php +++ b/src/Entity/Vehicle.php @@ -13,8 +13,38 @@ class Vehicle #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 255)] + private ?string $LicensePlate = null; + + #[ORM\Column(length: 255)] + private ?string $Brand = null; + public function getId(): ?int { return $this->id; } + + public function getLicensePlate(): ?string + { + return $this->LicensePlate; + } + + public function setLicensePlate(string $LicensePlate): static + { + $this->LicensePlate = $LicensePlate; + + return $this; + } + + public function getBrand(): ?string + { + return $this->Brand; + } + + public function setBrand(string $Brand): static + { + $this->Brand = $Brand; + + return $this; + } }