ListViewModel   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 1 Features 2
Metric Value
wmc 6
c 5
b 1
f 2
lcom 0
cbo 1
dl 0
loc 65
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCollection() 0 4 1
A setCollection() 0 4 1
A getErrors() 0 4 1
A setErrors() 0 4 1
A getInputData() 0 4 1
A setInputData() 0 4 1
1
<?php
2
3
namespace Sebaks\Crud\View\Model;
4
5
use Zend\View\Model\ViewModel;
6
use ArrayObject;
7
8
class ListViewModel extends ViewModel implements ListViewModelInterface
9
{
10
    /**
11
     * @var ArrayObject
12
     */
13
    private $collection;
14
15
    /**
16
     * @var array
17
     */
18
    private $errors;
19
20
    /**
21
     * @var array
22
     */
23
    private $filter;
24
25
    /**
26
     * @return ArrayObject
27
     */
28
    public function getCollection()
29
    {
30
        return $this->collection;
31
    }
32
33
    /**
34
     * @param ArrayObject $collection
35
     */
36
    public function setCollection(ArrayObject $collection)
37
    {
38
        $this->collection = $collection;
39
    }
40
41
    /**
42
     * @return array
43
     */
44
    public function getErrors()
45
    {
46
        return $this->errors;
47
    }
48
49
    /**
50
     * @param array $errors
51
     */
52
    public function setErrors(array $errors)
53
    {
54
        $this->errors = $errors;
55
    }
56
57
    /**
58
     * @return array
59
     */
60
    public function getInputData()
61
    {
62
        return $this->filter;
63
    }
64
65
    /**
66
     * @param array $filter
67
     */
68
    public function setInputData(array $filter)
69
    {
70
        $this->filter = $filter;
71
    }
72
}
73