PhpOffice\PhpPresentation\Shape\Chart\Gridlines::setOutline PHP Method

setOutline() public method

public setOutline ( Outline $outline ) : Gridlines
$outline PhpOffice\PhpPresentation\Style\Outline
return Gridlines
    public function setOutline(Outline $outline)
    {
        $this->outline = $outline;
        return $this;
    }

Usage Example

 public function testGetSetOutline()
 {
     $object = new Gridlines();
     $oStub = $this->getMock('PhpOffice\\PhpPresentation\\Style\\Outline');
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->getOutline());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Gridlines', $object->setOutline($oStub));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->getOutline());
 }