Completed
Pull Request — master (#597)
by
unknown
08:06
created

AbstractDecoratorWriter::getPresentation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpOffice\PhpPresentation\Writer;
4
5
use PhpOffice\Common\Adapter\Zip\ZipInterface;
6
use PhpOffice\PhpPresentation\HashTable;
7
use PhpOffice\PhpPresentation\PhpPresentation;
8
9
abstract class AbstractDecoratorWriter
10
{
11
    /**
12
     * @return ZipInterface
13
     */
14
    abstract public function render();
15
16
    /**
17
     * @var \PhpOffice\PhpPresentation\HashTable
18
     */
19
    protected $oHashTable;
20
21
    /**
22
     * @var PhpPresentation
23
     */
24
    protected $oPresentation;
25
26
    /**
27
     * @var ZipInterface
28
     */
29
    protected $oZip;
30
31
    /**
32
     * @param HashTable $hashTable
33
     * @return $this
34
     */
35 179
    public function setDrawingHashTable(HashTable $hashTable)
36
    {
37 179
        $this->oHashTable = $hashTable;
38 179
        return $this;
39
    }
40
41
    /**
42
     * @return HashTable
43
     */
44 179
    public function getDrawingHashTable()
45
    {
46 179
        return $this->oHashTable;
47
    }
48
49
    /**
50
     * @param PhpPresentation $oPresentation
51
     * @return $this
52
     */
53 179
    public function setPresentation(PhpPresentation $oPresentation)
54
    {
55 179
        $this->oPresentation = $oPresentation;
56 179
        return $this;
57
    }
58
59
    /**
60
     * @return PhpPresentation
61
     */
62 179
    public function getPresentation()
63
    {
64 179
        return $this->oPresentation;
65
    }
66
67
    /**
68
     * @param ZipInterface $oZip
69
     * @return $this
70
     */
71 179
    public function setZip(ZipInterface $oZip)
72
    {
73 179
        $this->oZip = $oZip;
74 179
        return $this;
75
    }
76
77
    /**
78
     * @return ZipInterface
79
     */
80 179
    public function getZip()
81
    {
82 179
        return $this->oZip;
83
    }
84
}
85