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

DocumentPage::setDocument()   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 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