Completed
Push — master ( 03fc4c...95d208 )
by Ralf
15s queued 12s
created

StoredSearch::setQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace EWW\Dpf\Domain\Model;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
/**
18
 * StoredSearch
19
 */
20
class StoredSearch extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
21
{
22
23
    /**
24
     * name
25
     *
26
     * @var string
27
     * @validate NotEmpty
28
     */
29
    protected $name = '';
30
31
    /**
32
     * query
33
     *
34
     * @var string
35
     * @validate NotEmpty
36
     */
37
    protected $query = '';
38
39
40
    /**
41
     * Returns the name
42
     *
43
     * @return string $name
44
     */
45
    public function getName()
46
    {
47
        return $this->name;
48
    }
49
50
    /**
51
     * Sets the name
52
     *
53
     * @param string $name
54
     * @return void
55
     */
56
    public function setName($name)
57
    {
58
        $this->name = $name;
59
    }
60
61
62
    /**
63
     * Returns the query
64
     *
65
     * @return string $query
66
     */
67
    public function getQuery()
68
    {
69
        return $this->query;
70
    }
71
72
73
    /**
74
     * Sets the query
75
     *
76
     * @param string $query
77
     * @return void
78
     */
79
    public function setQuery($query)
80
    {
81
        $this->query = $query;
82
    }
83
84
}
85