Completed
Push — master ( d441be...baac5a )
by Fabien
04:48
created

ConstraintContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConstraint() 0 4 1
A setConstraint() 0 5 1
1
<?php
2
namespace Fab\Vidi\Persistence;
3
4
/*
5
 * This file is part of the Fab/Vidi project under GPLv2 or later.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.md file that was distributed with this source code.
9
 */
10
11
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface;
12
13
/**
14
 * Class ConstraintContainer
15
 */
16
class ConstraintContainer
17
{
18
    /**
19
     * @var ConstraintInterface
20
     */
21
    protected $constraint;
22
23
    /**
24
     * @return ConstraintInterface
25
     */
26
    public function getConstraint()
27
    {
28
        return $this->constraint;
29
    }
30
31
    /**
32
     * @param ConstraintInterface $constraint
33
     * @return $this
34
     */
35
    public function setConstraint($constraint)
36
    {
37
        $this->constraint = $constraint;
38
        return $this;
39
    }
40
41
}
42