Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-07-24 22:01:32 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-07-24 22:01:32 +0300
commitf136e415541c39c711876e549a3322f0c22be7d6 (patch)
tree9fee49f6b12508134f47c92973ebab30f65d1c3e /lib
parent314ffa8d41dc3977f6a3bcb87d8372a01795933f (diff)
runner can be strict
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Model/Runner.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/Model/Runner.php b/lib/Model/Runner.php
index 7dea51f..eeccf37 100644
--- a/lib/Model/Runner.php
+++ b/lib/Model/Runner.php
@@ -21,7 +21,7 @@
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+ *
*/
@@ -49,6 +49,9 @@ class Runner {
/** @var string */
private $source;
+ /** @var bool */
+ private $strict = false;
+
/** @var int */
private $tickId;
@@ -80,10 +83,12 @@ class Runner {
/**
+ * @param bool $strict
+ *
* @throws RunnerAlreadyUpException
- * @throws Exception
*/
- public function start() {
+ public function start($strict = false) {
+ $this->strict = $strict;
$this->tickId = $this->runningService->start($this->source);
}
@@ -172,6 +177,10 @@ class Runner {
}
+ public function isStrict() {
+ return $this->strict;
+ }
+
/**
* @param string $line
*/