Completed
Push — master ( 07905b...790544 )
by yuuki
10s
created

ViewQuerying   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 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\Events;
14
15
use CouchbaseViewQuery;
16
17
/**
18
 * Class ViewQuerying
19
 *
20
 * @author Yuuki Takezawa<[email protected]>
21
 */
22
class ViewQuerying
23
{
24
    /** @var mixed  Generates the view query as it will be passed to the server. */
25
    public $path;
26
27
    /**
28
     * ViewQuerying constructor.
29
     *
30
     * @param CouchbaseViewQuery $viewQuery
31
     */
32 1
    public function __construct(CouchbaseViewQuery $viewQuery)
33
    {
34 1
        $this->path = $viewQuery->toString();
35 1
    }
36
}
37