Skip to content

Commit dbe4578

Browse files
author
Corey McCormick
committed
Allow chaining of bust methods.
1 parent 28a9270 commit dbe4578

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Cacheable.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,25 @@ public function delete()
8282
/**
8383
* Enables cache busting.
8484
*
85-
* @return void
85+
* @return Cacheable
8686
*/
8787
public function bust()
8888
{
8989
$this->cacheBusting = true;
90+
91+
return $this;
9092
}
9193

9294
/**
9395
* Disables cache busting.
9496
*
95-
* @return void
97+
* @return Cacheable
9698
*/
9799
public function dontBust()
98100
{
99101
$this->cacheBusting = false;
102+
103+
return $this;
100104
}
101105

102106
/**

0 commit comments

Comments
 (0)