mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 17:22:41 +01:00
20 lines
334 B
PHP
20 lines
334 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DesignPatterns\Structural\Adapter;
|
|
|
|
interface EBook
|
|
{
|
|
public function unlock();
|
|
|
|
public function pressNext();
|
|
|
|
/**
|
|
* returns current page and total number of pages, like [10, 100] is page 10 of 100
|
|
*
|
|
* @return int[]
|
|
*/
|
|
public function getPage(): array;
|
|
}
|