Passed
Push — master ( 357df8...5617f0 )
by Georges
02:00 queued 12s
created

Config::setCollectionName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
/**
3
 *
4
 * This file is part of phpFastCache.
5
 *
6
 * @license MIT License (MIT)
7
 *
8
 * For full copyright and license information, please see the docs/CREDITS.txt file.
9
 *
10
 * @author Khoa Bui (khoaofgod)  <[email protected]> https://www.phpfastcache.com
11
 * @author Georges.L (Geolim4)  <[email protected]>
12
 *
13
 */
14
15
declare(strict_types=1);
16
17
namespace Phpfastcache\Drivers\Couchbasev3;
18
19
use Phpfastcache\Drivers\Couchbase\Config as CoubaseV2Config;
20
21
class Config extends CoubaseV2Config
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $bucketName = 'phpfastcache';
27
28
    protected $scopeName = self::DEFAULT_VALUE;
29
30
    protected $collectionName = self::DEFAULT_VALUE;
31
32
    /**
33
     * @return string
34
     */
35
    public function getScopeName(): string
36
    {
37
        return $this->scopeName;
38
    }
39
40
    /**
41
     * @param string $scopeName
42
     * @return Config
43
     */
44
    public function setScopeName(string $scopeName): Config
45
    {
46
        $this->scopeName = $scopeName;
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getCollectionName(): string
54
    {
55
        return $this->collectionName;
56
    }
57
58
    /**
59
     * @param string $collectionName
60
     * @return Config
61
     */
62
    public function setCollectionName(string $collectionName): Config
63
    {
64
        $this->collectionName = $collectionName;
65
        return $this;
66
    }
67
}
68