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.
sae_2a_anglais/Project/php/gateway/AbsGateway.php

24 lines
519 B

<?php
namespace gateway;
use PDO;
use PDOException;
use config\Connection;
abstract class AbsGateway
{
protected Connection $con;
public function __construct() {
global $dsn;
global $login;
global $password;
$this->con = new Connection($dsn, $login, $password);
}
public abstract function add(array $parameters): int;
public abstract function remove(int $id): void;
public abstract function findAll(): array;
public abstract function findById(int $id);
}