Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Update CacheInterface.php #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/Payline/Cache/CacheInterface.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?php

declare(strict_types=1);

namespace Payline\Cache;

interface CacheInterface
{
const CACHE_KEY = 'payline_sdk_services_urls';
public const CACHE_KEY = 'payline_sdk_services_urls';

/**
* @return bool
*/
public function isAvailable();
public function isAvailable(): bool;


/**
* @return bool
*/
public function hasServicesEndpoints();
public function hasServicesEndpoints(): bool;


/**
Expand All @@ -28,5 +30,5 @@ public function loadServicesEndpoints();
* @param int $ttl
* @return bool
*/
public function saveServicesEndpoints(array $endpoints, $ttl);
}
public function saveServicesEndpoints(array $endpoints, $ttl): bool;
}