PhpOffice\PhpPresentation\Writer\PowerPoint2007\AbstractDecoratorWriter::writeFill PHP Метод

writeFill() защищенный Метод

Write Fill
protected writeFill ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Style\Fill $pFill )
$objWriter PhpOffice\Common\XMLWriter XML Writer
$pFill PhpOffice\PhpPresentation\Style\Fill Fill style
    protected function writeFill(XMLWriter $objWriter, $pFill)
    {
        if (!$pFill instanceof Fill) {
            return;
        }
        // Is it a fill?
        if ($pFill->getFillType() == Fill::FILL_NONE) {
            return;
        }
        // Is it a solid fill?
        if ($pFill->getFillType() == Fill::FILL_SOLID) {
            $this->writeSolidFill($objWriter, $pFill);
            return;
        }
        // Check if this is a pattern type or gradient type
        if ($pFill->getFillType() == Fill::FILL_GRADIENT_LINEAR || $pFill->getFillType() == Fill::FILL_GRADIENT_PATH) {
            // Gradient fill
            $this->writeGradientFill($objWriter, $pFill);
        } else {
            // Pattern fill
            $this->writePatternFill($objWriter, $pFill);
        }
    }