setType() public method

Set type
public setType ( AbstractType $value ) : PlotArea
$value PhpOffice\PhpPresentation\Shape\Chart\Type\AbstractType
return PlotArea
Example #1
0
 public function testType()
 {
     $object = new PlotArea();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setType(new Bar3D()));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Type\\AbstractType', $object->getType());
 }