setOffsetY() public method

Set OffsetY (as a fraction of the chart)
public setOffsetY ( float | integer $value ) : PhpOffice\PhpPresentation\Shape\Chart\Title
$value float | integer
return PhpOffice\PhpPresentation\Shape\Chart\Title
Beispiel #1
0
 public function testOffsetY()
 {
     $object = new PlotArea();
     $value = rand(0, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setOffsetY());
     $this->assertEquals(0, $object->getOffsetY());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setOffsetY($value));
     $this->assertEquals($value, $object->getOffsetY());
 }