Code Duplication    Length = 8-8 lines in 2 locations

Manager/OrderLineManager.php 1 location

@@ 38-45 (lines=8) @@
35
    /**
36
     * @return string
37
     */
38
    public function getClass() : string
39
    {
40
        if (false !== strpos($this->class, ':')) {
41
            $metadata = $this->objectManager->getClassMetadata($this->class);
42
            $this->class = $metadata->getName();
43
        }
44
        return $this->class;
45
    }
46
47
    /**
48
     * @return OrderLineInterface

Manager/PaymentManager.php 1 location

@@ 46-53 (lines=8) @@
43
    /**
44
     * @return string
45
     */
46
    public function getClass() : string
47
    {
48
        if (false !== strpos($this->class, ':')) {
49
            $metadata = $this->objectManager->getClassMetadata($this->class);
50
            $this->class = $metadata->getName();
51
        }
52
        return $this->class;
53
    }
54
55
    /**
56
     * @return PaymentInterface