You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
409 B
21 lines
409 B
<?php
|
|
|
|
namespace Database;
|
|
|
|
use Shared\Log;
|
|
|
|
class EntrainementGateway
|
|
{
|
|
private Connexion $connection;
|
|
|
|
public function __construct(Connexion $connection) {
|
|
$this->connection = $connection;
|
|
}
|
|
|
|
public function getEntrainements(): array
|
|
{
|
|
$query = "SELECT * FROM Entrainement";
|
|
$res = $this->connection->executeWithErrorHandling($query);
|
|
return $res;
|
|
}
|
|
} |