Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
4
 
5
use PhpOffice\PhpSpreadsheet\Writer\Ods;
6
 
7
abstract class WriterPart
8
{
9
    /**
10
     * Parent Ods object.
11
     */
12
    private Ods $parentWriter;
13
 
14
    /**
15
     * Get Ods writer.
16
     */
17
    public function getParentWriter(): Ods
18
    {
19
        return $this->parentWriter;
20
    }
21
 
22
    /**
23
     * Set parent Ods writer.
24
     */
25
    public function __construct(Ods $writer)
26
    {
27
        $this->parentWriter = $writer;
28
    }
29
 
30
    abstract public function write(): string;
31
}