PhpOffice\PhpPresentation\Shape\Chart\Series::setFill PHP 메소드

setFill() 공개 메소드

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

Usage 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());
 }