Passed
Push — master ( b45126...8af3f1 )
by 世昌
03:18
created

DebugObjectContext::isObjectExported()   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
4
namespace suda\framework\debug;
5
6
class DebugObjectContext
7
{
8
9
    /**
10
     * @var array
11
     */
12
    protected $object = [];
13
14
    /**
15
     * @param string $objectHash
16
     * @return bool
17
     */
18
    public function isObjectExported(string $objectHash)
19
    {
20
        return in_array($objectHash, $this->object);
21
    }
22
23
    public function setObjectIsExported(string $objectHash)
24
    {
25
        $this->object [] = $objectHash;
26
    }
27
}
28