Make LinkBatch::setCaller chainable
To allow for one-liners such as $lb->setCaller( __METHOD__ )->execute(); Change-Id: I45cd81d9e583f09aacb578ffb87d7c11b0e13d57
This commit is contained in:
parent
cadd656839
commit
cb74e93b44
1 changed files with 3 additions and 0 deletions
3
includes/cache/LinkBatch.php
vendored
3
includes/cache/LinkBatch.php
vendored
|
|
@ -57,9 +57,12 @@ class LinkBatch {
|
|||
* @since 1.17
|
||||
*
|
||||
* @param string $caller
|
||||
* @return self (since 1.32)
|
||||
*/
|
||||
public function setCaller( $caller ) {
|
||||
$this->caller = $caller;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue