TaskCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A throwNotFound() 0 4 1
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Task;
9
10
use Deployer\Collection\Collection;
11
12
/**
13
 * @method Task get($name)
14
 * @method Task[] getIterator()
15
 */
16
class TaskCollection extends Collection
17
{
18 3
    protected function throwNotFound(string $name)
19
    {
20 3
        throw new \InvalidArgumentException("Task `$name` not found.");
21
    }
22
}
23