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
431 B
21 lines
431 B
<?php
|
|
|
|
namespace gateway;
|
|
|
|
use PDO;
|
|
use PDOException;
|
|
use config\Connection;
|
|
|
|
abstract class AbsGateway
|
|
{
|
|
protected Connection $con;
|
|
|
|
public function __construct(Connection $con) {
|
|
$this->con = $con;
|
|
}
|
|
|
|
public abstract function add(array $parameters): int;
|
|
public abstract function remove(array $id): void;
|
|
public abstract function findAll(): array;
|
|
public abstract function findById(int $id);
|
|
} |