Bläddra i källkod

lu query dbo

develop
Robin Thoni 8 år sedan
förälder
incheckning
3ff6e4cc4f
1 ändrade filer med 79 tillägg och 0 borttagningar
  1. 79
    0
      src/Utils/Dbo/LuQueryDbo.php

+ 79
- 0
src/Utils/Dbo/LuQueryDbo.php Visa fil

@@ -0,0 +1,79 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: robin
5
+ * Date: 6/14/16
6
+ * Time: 12:20 PM
7
+ */
8
+
9
+namespace Luticate\Utils\Dbo;
10
+
11
+
12
+class LuQueryDbo extends LuDbo
13
+{
14
+    /**
15
+     * @var $_page int
16
+     * @min 0
17
+     */
18
+    protected $_page;
19
+
20
+    /**
21
+     * @var $_perPage int
22
+     * @min 1
23
+     */
24
+    protected $_perPage;
25
+
26
+    /**
27
+     * @var $_query string
28
+     */
29
+    protected $_query;
30
+
31
+    /**
32
+     * @return int
33
+     */
34
+    public function getPage()
35
+    {
36
+        return $this->_page;
37
+    }
38
+
39
+    /**
40
+     * @param int $page
41
+     */
42
+    public function setPage($page)
43
+    {
44
+        $this->_page = $page;
45
+    }
46
+
47
+    /**
48
+     * @return int
49
+     */
50
+    public function getPerPage()
51
+    {
52
+        return $this->_perPage;
53
+    }
54
+
55
+    /**
56
+     * @param int $perPage
57
+     */
58
+    public function setPerPage($perPage)
59
+    {
60
+        $this->_perPage = $perPage;
61
+    }
62
+
63
+    /**
64
+     * @return string
65
+     */
66
+    public function getQuery()
67
+    {
68
+        return $this->_query;
69
+    }
70
+
71
+    /**
72
+     * @param string $query
73
+     */
74
+    public function setQuery($query)
75
+    {
76
+        $this->_query = $query;
77
+    }
78
+    
79
+}

Laddar…
Avbryt
Spara