Skip to content

Commit ee6707a

Browse files
committed
make phpdoc more specific
1 parent ff54de7 commit ee6707a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/Invalidation/CacheProxyInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
/**
88
* An HTTP caching reverse proxy.
9+
*
10+
* Implementations should implement at least one of the Method interfaces.
911
*/
1012
interface CacheProxyInterface
1113
{

src/Invalidation/Method/PurgeInterface.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
/**
88
* An HTTP cache that supports invalidation by purging, that is, removing one
9-
* URL from the cache
9+
* URL from the cache.
10+
*
11+
* Implementations should be configurable with a default host to be able to
12+
* handle purge calls that do not contain a full URL but only a path.
1013
*/
1114
interface PurgeInterface extends CacheProxyInterface
1215
{
@@ -16,7 +19,10 @@ interface PurgeInterface extends CacheProxyInterface
1619
* Purging a URL will remove the cache for the URL, including the query
1720
* string, with all its Vary variants.
1821
*
19-
* @param string $url
22+
* If the $url is just a path, the cache proxy class will add a default
23+
* host name.
24+
*
25+
* @param string $url Path or URL to purge.
2026
*
2127
* @return $this
2228
*/

src/Invalidation/Method/RefreshInterface.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
/**
88
* An HTTP cache that supports invalidation by refresh requests that force a
9-
* cache miss for one specific URL
9+
* cache miss for one specific URL.
10+
*
11+
* Implementations should be configurable with a default host to be able to
12+
* handle refresh calls that do not contain a full URL but only a path.
1013
*/
1114
interface RefreshInterface extends CacheProxyInterface
1215
{
@@ -16,6 +19,9 @@ interface RefreshInterface extends CacheProxyInterface
1619
* Refreshing a URL will generate a new cached response for the URL,
1720
* including the query string but excluding any Vary variants.
1821
*
22+
* If the $url is just a path, the cache proxy class will add a default
23+
* host name.
24+
*
1925
* @param string $url Path or URL to refresh.
2026
* @param array $headers Extra HTTP headers to send to the caching proxy
2127
* (optional)

0 commit comments

Comments
 (0)