Config::setFrozen()   A
last analyzed

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 readonly bool $isUUID = false,
20
        private bool $isFrozen = false)
21
    {
22
    }
23
24
    /**
25
     * Get if the connection is using UUID.
26
     */
27
    public function isUsingUUID(): bool
28
    {
29
        return $this->isUUID;
30
    }
31
32
    /**
33
     * Set if the connection is frozen.
34
     */
35
    public function setFrozen(bool $isFrozen): void
36
    {
37
        $this->isFrozen = $isFrozen;
38
    }
39
40
    /**
41
     * Get if the connection is frozen.
42
     */
43
    public function isFrozen(): bool
44
    {
45
        return $this->isFrozen;
46
    }
47
}
48