diff --git a/.gitignore b/.gitignore index 2b1593e..83c228f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /vendor/ ###< symfony/framework-bundle ### .env +.idea diff --git a/config/routes.yaml b/config/routes.yaml index 5b102f6..c1aa49d 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -1,5 +1,5 @@ controllers: - resource: ../src/Controller/ + resource: ../src/App/Controller/ type: annotation kernel: diff --git a/src/App/Composant/User/Domain/User.php b/src/App/Composant/User/Domain/User.php new file mode 100644 index 0000000..588cc6e --- /dev/null +++ b/src/App/Composant/User/Domain/User.php @@ -0,0 +1,96 @@ +kwhPrice; + } + + /** + * @param float $kwhPrice + */ + public function setKwhPrice(float $kwhPrice): void + { + $this->kwhPrice = $kwhPrice; + } + + /** + * @return float + */ + public function getHourlyCost(): float + { + return $this->hourlyCost; + } + + /** + * @param float $hourlyCost + */ + public function setHourlyCost(float $hourlyCost): void + { + $this->hourlyCost = $hourlyCost; + } + + /** + * @return int + */ + public function getRoleId(): int + { + return $this->roleId; + } + + /** + * @param int $roleId + */ + public function setRoleId(int $roleId): void + { + $this->roleId = $roleId; + } + + /** + * @return string + */ + public function getLastname(): string + { + return $this->lastname; + } + + /** + * @param string $lastname + */ + public function setLastname(string $lastname): void + { + $this->lastname = $lastname; + } + + /** + * @return string + */ + public function getFirstname(): string + { + return $this->firstname; + } + + /** + * @param string $firstname + */ + public function setFirstname(string $firstname): void + { + $this->firstname = $firstname; + } + +} \ No newline at end of file diff --git a/src/App/Composant/User/Domain/UserDataMapper.php b/src/App/Composant/User/Domain/UserDataMapper.php new file mode 100644 index 0000000..59c53f3 --- /dev/null +++ b/src/App/Composant/User/Domain/UserDataMapper.php @@ -0,0 +1,9 @@ +findById(1); + return new Response( + 'Content', + Response::HTTP_OK, + ['content-type' => 'text/html'] + ); + } +} \ No newline at end of file