| 1 | <?php |
||
| 17 | class VisitTimeClient implements ClientInterface |
||
| 18 | { |
||
| 19 | use DirectiveClientTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Times |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $times = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * RequestRateClient constructor. |
||
| 29 | * |
||
| 30 | * @param array $times |
||
| 31 | */ |
||
| 32 | public function __construct(array $times) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Is visit-time |
||
| 39 | * |
||
| 40 | * @param int|null $timestamp |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function isVisitTime($timestamp = null) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Export |
||
| 56 | * |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function export() |
||
| 63 | } |
||
| 64 |