PHP Designing Interfaces in PHP Introducing Interfaces Implement MySQL RepositoryInterface

create a class named 'sqlRepository' that extends the PDO class and implements the 'RepositoryInterface'.

create a class named 'sqlRepository' that extends the PDO class and implements the 'RepositoryInterface'.

sqlRepository.php
<?php
class sqlRepository implements RepositoryInterface
{

}

?>

1 Answer

Patrik Horváth
Patrik Horváth
11,070 Points

you miss extend part :)

class sqlRepository extends PDO implements RepositoryInterface {

}