Tasks   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A stopOnFail() 0 4 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