Make add chainable

Fixes #125
This commit is contained in:
Matthias Mullie 2017-01-26 09:12:33 +01:00
parent be5a61820f
commit 33048c5fab

View File

@ -54,6 +54,8 @@ abstract class Minify
* Add a file or straight-up code to be minified.
*
* @param string|string[] $data
*
* @return static
*/
public function add($data /* $data = null, ... */)
{
@ -84,6 +86,8 @@ abstract class Minify
// store data
$this->data[$key] = $value;
}
return $this;
}
/**