Completed
Pull Request — master (#351)
by Leny
06:37
created

QueryTrait::setOrderBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Victoire\Bundle\QueryBundle\Entity;
4
5
/**
6
 * Query trait adds the query fields.
7
 */
8
trait QueryTrait
9
{
10
    /**
11
     * @var string
12
     *
13
     * @ORM\Column(name="query", type="text", nullable=true)
14
     */
15
    protected $query;
16
17
    /**
18
     * @var string
19
     *
20
     * @ORM\Column(name="orderBy", type="text", nullable=true)
21
     */
22
    protected $orderBy;
23
24
    /**
25
     *  Auto list mode: businessentity type.
26
     *
27
     * @var string
28
     * @ORM\Column(name="business_entity_id", type="string", nullable=true)
29
     */
30
    protected $businessEntityId;
31
32
    /**
33
     * Get query.
34
     *
35
     * @return string
36
     */
37
    public function getQuery()
38
    {
39
        return $this->query;
40
    }
41
42
    /**
43
     * Set query.
44
     *
45
     * @param string $query
46
     */
47
    public function setQuery($query)
48
    {
49
        $this->query = $query;
50
    }
51
52
    /**
53
     * Get orderBy.
54
     *
55
     * @return string
56
     */
57
    public function getOrderBy()
58
    {
59
        return $this->orderBy;
60
    }
61
62
    /**
63
     * Set orderBy.
64
     *
65
     * @param string $orderBy
66
     */
67
    public function setOrderBy($orderBy)
68
    {
69
        $this->orderBy = $orderBy;
70
    }
71
72
    /**
73
     * Get businessEntityId.
74
     *
75
     * @return int
76
     */
77
    public function getBusinessEntityId()
78
    {
79
        return $this->businessEntityId;
80
    }
81
82
    /**
83
     * Set businessEntityId.
84
     *
85
     * @param string $businessEntityId The business entity name
86
     */
87
    public function setBusinessEntityId($businessEntityId)
88
    {
89
        $this->businessEntityId = $businessEntityId;
90
    }
91
}
92