Skip to content

Commit

Permalink
#79 add doc Request::get
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoujols committed Apr 4, 2024
1 parent 064d5fc commit dfb9e53
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/EduFramework/Core/Controller/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@ public function getHearder(): bool|array
return getallheaders();
}

/**
* Permet de récupérer une variable de la requête HTTP
* @param string $key Le nom de la variable
* @return string|null
*/
public function get(string $key): string|null
{
return $this->vars[$key] ?? null;
}

/**
* Renvoi le nom du controller qui est associé à la requête HTTP
* @return string
Expand All @@ -108,7 +98,17 @@ public function setHander(string $hander): Request
}

/**
* Renoi les variables de la requête HTTP
* Permet de récupérer une variable de la requête HTTP
* @param string $key Le nom de la variable
* @return string|null
*/
public function get(string $key): string|null
{
return $this->vars[$key] ?? null;
}

/**
* Renvoi les variables de la requête HTTP
* @return array<mixed>
*/
public function getVars(): array
Expand Down

0 comments on commit dfb9e53

Please sign in to comment.