mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-25 18:58:41 +00:00
36 lines
561 B
PHP
36 lines
561 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheet\Writer\Ods;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Writer\Ods;
|
|
|
|
abstract class WriterPart
|
|
{
|
|
/**
|
|
* Parent Ods object.
|
|
*
|
|
* @var Ods
|
|
*/
|
|
private $parentWriter;
|
|
|
|
/**
|
|
* Get Ods writer.
|
|
*
|
|
* @return Ods
|
|
*/
|
|
public function getParentWriter()
|
|
{
|
|
return $this->parentWriter;
|
|
}
|
|
|
|
/**
|
|
* Set parent Ods writer.
|
|
*/
|
|
public function __construct(Ods $writer)
|
|
{
|
|
$this->parentWriter = $writer;
|
|
}
|
|
|
|
abstract public function write(): string;
|
|
}
|