Completed
Push — master ( a5a753...454108 )
by Wachter
07:05
created

TaskBuilderFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createTaskBuilder() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of php-task library.
5
 *
6
 * (c) php-task
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Task\TaskBundle\Builder;
13
14
use Task\Builder\TaskBuilderFactoryInterface;
15
use Task\Scheduler\TaskSchedulerInterface;
16
use Task\TaskInterface;
17
18
/**
19
 * Factory to create new task-builders.
20
 */
21
class TaskBuilderFactory implements TaskBuilderFactoryInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 7
    public function createTaskBuilder(TaskInterface $task, TaskSchedulerInterface $taskScheduler)
27
    {
28 7
        return new TaskBuilder($task, $taskScheduler);
29
    }
30
}
31