Skip to content

Commit 0ddea21

Browse files
committed
Improve PHPDocs
1 parent 80b540e commit 0ddea21

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

HttpCache/Invalidation/BanInterface.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ interface BanInterface
1818
* @param string $path Path that will be banned. This can be a regex,
1919
* for instance, "\.png$"
2020
* @param string $contentType Content-type that cached responses must
21-
* match in order to be invalidated
21+
* match in order to be invalidated (optional).
22+
* This can be part of a content type or regex,
23+
* for instance, "text"
2224
* @param array $hosts Host that cached responses must match in
23-
* order to be invalidated
25+
* order to be invalidated (optional)
2426
*
2527
* @return $this
2628
*/
27-
public function ban($path, $contentType, array $hosts = null);
29+
public function ban($path, $contentType = self::CONTENT_TYPE_ALL, array $hosts = null);
2830
}

HttpCache/Invalidation/RefreshInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ interface RefreshInterface
1212
/**
1313
* Refresh a URL
1414
*
15+
* Refreshing a URL will generate a new cached response for it.
16+
*
1517
* @param string $url
1618
*
1719
* @return $this

0 commit comments

Comments
 (0)