PhpOffice\PhpPresentation\Shape\Chart\PlotArea::setType PHP Метод

setType() публичный Метод

Set type
public setType ( AbstractType $value ) : PlotArea
$value PhpOffice\PhpPresentation\Shape\Chart\Type\AbstractType
Результат PlotArea
    public function setType(Type\AbstractType $value)
    {
        $this->type = $value;
        return $this;
    }

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