Test Failed
Push — master ( 507036...762659 )
by Julien
21:33
created

Column   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 19
ccs 0
cts 6
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getColumn() 0 3 1
A initializeColumn() 0 3 1
A setColumn() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Zemit Framework.
5
 *
6
 * (c) Zemit Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zemit\Mvc\Controller\Traits\Query;
13
14
use Phalcon\Support\Collection;
15
use Zemit\Mvc\Controller\Traits\Abstracts\Query\AbstractColumn;
16
17
trait Column
18
{
19
    use AbstractColumn;
20
    
21
    protected ?Collection $column;
22
    
23
    public function initializeColumn(): void
24
    {
25
        $this->setColumn(null);
26
    }
27
    
28
    public function setColumn(?Collection $column): void
29
    {
30
        $this->column = $column;
31
    }
32
    
33
    public function getColumn(): ?Collection
34
    {
35
        return $this->column;
36
    }
37
}
38