ViewQuerying   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

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