ReadViewModel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntity() 0 4 1
A setEntity() 0 4 1
1
<?php
2
3
namespace Sebaks\Crud\View\Model;
4
5
use Zend\View\Model\ViewModel;
6
use T4webDomainInterface\EntityInterface;
7
8
class ReadViewModel extends ViewModel implements ReadViewModelInterface
9
{
10
    /**
11
     * @var EntityInterface
12
     */
13
    private $entity;
14
15
    /**
16
     * @return EntityInterface
17
     */
18
    public function getEntity()
19
    {
20
        return $this->entity;
21
    }
22
23
    /**
24
     * @param EntityInterface $entity
25
     */
26
    public function setEntity(EntityInterface $entity)
27
    {
28
        $this->entity = $entity;
29
    }
30
}
31