PhpOffice\PhpPresentation\Shape\Chart\Series::setFill PHP Method

setFill() public method

Set Fill
public setFill ( PhpOffice\PhpPresentation\Style\Fill $fill = null ) : Series
$fill PhpOffice\PhpPresentation\Style\Fill
return Series
    public function setFill(Fill $fill = null)
    {
        $this->fill = $fill;
        return $this;
    }

Usage Example

Example #1
0
 public function testFill()
 {
     $object = new Series();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setFill());
     $this->assertNull($object->getFill());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setFill(new Fill()));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Fill', $object->getFill());
 }