diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-07-24 22:01:32 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-07-24 22:01:32 +0300 |
commit | f136e415541c39c711876e549a3322f0c22be7d6 (patch) | |
tree | 9fee49f6b12508134f47c92973ebab30f65d1c3e /lib | |
parent | 314ffa8d41dc3977f6a3bcb87d8372a01795933f (diff) |
runner can be strict
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Model/Runner.php | 15 |
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 */ |