Passed
Push — master ( 5cf429...20326d )
by Christian
12:06 queued 12s
created

DocumentPage   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocument() 0 3 1
A setDeepLinkCode() 0 3 1
A setDocument() 0 3 1
A getDeepLinkCode() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Storefront\Page\Account\Document;
4
5
use Shopware\Core\Checkout\Document\GeneratedDocument;
6
use Shopware\Storefront\Page\Page;
7
8
/*
9
 * @internal (flag:FEATURE_NEXT_10537)
10
 */
11
class DocumentPage extends Page
12
{
13
    /**
14
     * @var GeneratedDocument
15
     */
16
    protected $document;
17
18
    /**
19
     * @var string|null
20
     */
21
    protected $deepLinkCode;
22
23
    public function getDeepLinkCode(): ?string
24
    {
25
        return $this->deepLinkCode;
26
    }
27
28
    public function setDeepLinkCode(?string $deepLinkCode): void
29
    {
30
        $this->deepLinkCode = $deepLinkCode;
31
    }
32
33
    public function getDocument(): GeneratedDocument
34
    {
35
        return $this->document;
36
    }
37
38
    public function setDocument(GeneratedDocument $document): void
39
    {
40
        $this->document = $document;
41
    }
42
}
43