Completed
Push — 2.0 ( ee0168...76e968 )
by Marco
11:26
created

TasksTableTrait::setTasksTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php namespace Comodojo\Extender\Traits;
2
3
use \Comodojo\Extender\Task\Table as TasksTable;
4
5
trait TasksTableTrait {
6
7
    /**
8
     * @var TasksTable
9
     */
10
    protected $table;
11
12
    /**
13
     * Get current TasksTable
14
     *
15
     * @return TasksTable
16
     */
17
    public function getTasksTable() {
18
19
        return $this->table;
20
21
    }
22
23
    /**
24
     * Set current TasksTable
25
     *
26
     * @param TasksTable $table
27
     * @return self
28
     */
29
    public function setTasksTable(TasksTable $table) {
30
31
        $this->table = $table;
32
33
        return $this;
34
35
    }
36
37
}
38