Tasks::stopOnFail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Robo;
4
5
use Robo\Common\IO;
6
use Robo\Contract\IOAwareInterface;
7
use Robo\Contract\BuilderAwareInterface;
8
use League\Container\ContainerAwareInterface;
9
use League\Container\ContainerAwareTrait;
10
11
class Tasks implements BuilderAwareInterface, IOAwareInterface, ContainerAwareInterface
12
{
13
    use ContainerAwareTrait;
14
    use LoadAllTasks; // uses TaskAccessor, which uses BuilderAwareTrait
15
    use IO;
16
17
    /**
18
     * @param bool $stopOnFail
19
     */
20
    protected function stopOnFail($stopOnFail = true)
21
    {
22
        Result::$stopOnFail = $stopOnFail;
23
    }
24
}
25