Completed
Push — master ( 0d9cbc...8d7e77 )
by yuuki
02:23
created

ViewQuery   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 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
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A from() 0 4 1
1
<?php
2
3
/**
4
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
10
 * THE SOFTWARE.
11
 */
12
13
namespace Ytake\LaravelCouchbase\Database;
14
15
/**
16
 * Class ViewQuery.
17
 *
18
 * @author Yuuki Takezawa<[email protected]>
19
 */
20
class ViewQuery
21
{
22
    /** @var \CouchbaseBucket  */
23
    protected $bucket;
24
25
    /**
26
     * ViewQuery constructor.
27
     *
28
     * @param \CouchbaseBucket $bucket
29
     */
30
    public function __construct(\CouchbaseBucket $bucket)
31
    {
32
        $this->bucket = $bucket;
33
    }
34
35
    /**
36
     * @param $designDoc
37
     * @param $name
38
     *
39
     * @return \_CouchbaseDefaultViewQuery
40
     */
41
    public function from($designDoc, $name)
42
    {
43
        return \CouchbaseViewQuery::from($designDoc, $name);
44
    }
45
}
46