Skip to content
Browse files

Adding the fluent interface to FileLoader::setFile()

  • Loading branch information...
1 parent 1e6d8b4 commit 5eba9272ccc1dfdc88bd710ba9be471feb01acf6 @zyxist zyxist committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Opl/Collector/Configuration/FileLoader.php
View
6 src/Opl/Collector/Configuration/FileLoader.php
@@ -58,13 +58,17 @@ public function __construct($paths = array())
} // end __construct();
/**
- * Sets the file name, which the metadata will be loaded from.
+ * Sets the file name, which the metadata will be loaded from. Implements
+ * the fluent interface.
*
* @param string $file The file with the metadata.
+ * @return FileLoader
*/
public function setFile($file)
{
$this->currentFile = $file;
+
+ return $this;
} // end setFile();
/**

0 comments on commit 5eba927

Please sign in to comment.
Something went wrong with that request. Please try again.