Completed
Push — master ( 91ae79...84ac1b )
by BruceScrutinizer
02:37 queued 37s
created

Entry::getOriginalEntry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 1
f 0
1
<?php
2
namespace NamespaceProtector\Entry;
3
4
use Webmozart\Assert\Assert;
5
6
final class Entry {
7
8
    /** @var string */
9
    private $entry;
10
11
    /** @var string */
12
    private $originalEntry; 
13
14
    public function __construct(string $entry)
15
    {
16
        Assert::notEmpty($entry);
17
18
        $this->originalEntry = $entry;
19
        $this->entry =  $entry;
20
    }
21
22
    public function equalTo(self $other): bool
23
    {
24
        return $this == $other; 
25
    }
26
27
    public function get(): string
28
    {
29
        return $this->entry;
30
    }
31
}
32