Passed
Push — main ( b94a81...f6c2a3 )
by Pranjal
02:29
created

Config::useUUID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
/*
3
 * This file is part of the Scrawler package.
4
 *
5
 * (c) Pranjal Pandey <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Scrawler\Arca;
12
13
/**
14
 * Class to store the configuration.
15
 */
16
class Config
17
{
18
    public function __construct(
19
        private bool $isUUID = false,
20
        private bool $isFrozen = false)
21
    {
22
    }
23
24
    /**
25
     * Set if the connection is using UUID.
26
     */
27
    public function useUUID(bool $isUuid): void
28
    {
29
        $this->isUUID = $isUuid;
30
    }
31
32
    /**
33
     * Get if the connection is using UUID.
34
     */
35
    public function isUsingUUID(): bool
36
    {
37
        return $this->isUUID;
38
    }
39
40
    /**
41
     * Set if the connection is frozen.
42
     */
43
    public function setFrozen(bool $isFrozen): void
44
    {
45
        $this->isFrozen = $isFrozen;
46
    }
47
48
    /**
49
     * Get if the connection is frozen.
50
     */
51
    public function isFrozen(): bool
52
    {
53
        return $this->isFrozen;
54
    }
55
}
56