Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
AbstractDecoratorWriter
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 render
n/a
0 / 0
n/a
0 / 0
0
 setDrawingHashTable
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getDrawingHashTable
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPresentation
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getPresentation
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setZip
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getZip
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * This file is part of PHPPresentation - A pure PHP library for reading and writing
4 * presentations documents.
5 *
6 * PHPPresentation is free software distributed under the terms of the GNU Lesser
7 * General Public License version 3 as published by the Free Software Foundation.
8 *
9 * For the full copyright and license information, please read the LICENSE
10 * file that was distributed with this source code. For the full list of
11 * contributors, visit https://github.com/PHPOffice/PHPPresentation/contributors.
12 *
13 * @see        https://github.com/PHPOffice/PHPPresentation
14 *
15 * @license     http://www.gnu.org/licenses/lgpl.txt LGPL version 3
16 */
17
18declare(strict_types=1);
19
20namespace PhpOffice\PhpPresentation\Writer;
21
22use PhpOffice\Common\Adapter\Zip\ZipInterface;
23use PhpOffice\PhpPresentation\HashTable;
24use PhpOffice\PhpPresentation\PhpPresentation;
25
26abstract class AbstractDecoratorWriter
27{
28    abstract public function render(): ZipInterface;
29
30    /**
31     * @var HashTable
32     */
33    protected $oHashTable;
34
35    /**
36     * @var PhpPresentation
37     */
38    protected $oPresentation;
39
40    /**
41     * @var ZipInterface
42     */
43    protected $oZip;
44
45    /**
46     * @return $this
47     */
48    public function setDrawingHashTable(HashTable $hashTable)
49    {
50        $this->oHashTable = $hashTable;
51
52        return $this;
53    }
54
55    /**
56     * @return HashTable
57     */
58    public function getDrawingHashTable()
59    {
60        return $this->oHashTable;
61    }
62
63    /**
64     * @return $this
65     */
66    public function setPresentation(PhpPresentation $oPresentation)
67    {
68        $this->oPresentation = $oPresentation;
69
70        return $this;
71    }
72
73    /**
74     * @return PhpPresentation
75     */
76    public function getPresentation()
77    {
78        return $this->oPresentation;
79    }
80
81    /**
82     * @return $this
83     */
84    public function setZip(ZipInterface $oZip)
85    {
86        $this->oZip = $oZip;
87
88        return $this;
89    }
90
91    /**
92     * @return ZipInterface
93     */
94    public function getZip()
95    {
96        return $this->oZip;
97    }
98}