PhpOffice\PhpPresentation\Shape\Chart::setIncludeSpreadsheet PHP Method

setIncludeSpreadsheet() public method

Include spreadsheet for editing data? Requires PHPExcel in the same folder as PhpPresentation
public setIncludeSpreadsheet ( boolean $value = false ) : Chart
$value boolean
return Chart
    public function setIncludeSpreadsheet($value = false)
    {
        $this->includeSpreadsheet = $value;
        return $this;
    }

Usage Example

Example #1
0
 public function testIncludeSpreadsheet()
 {
     $object = new Chart();
     $this->assertFalse($object->hasIncludedSpreadsheet());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart', $object->setIncludeSpreadsheet());
     $this->assertFalse($object->hasIncludedSpreadsheet());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart', $object->setIncludeSpreadsheet(false));
     $this->assertFalse($object->hasIncludedSpreadsheet());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart', $object->setIncludeSpreadsheet(true));
     $this->assertTrue($object->hasIncludedSpreadsheet());
 }