setOffsetY() public méthode

Ignores setting the Y Offset, preserving the default behavior.
public setOffsetY ( integer $pValue ) : self
$pValue integer
Résultat self
Exemple #1
0
 public function testOffsetY()
 {
     $object = new Group();
     $line1 = new Line(10, 20, 30, 40);
     $object->addShape($line1);
     $this->assertEquals(20, $object->getOffsetY());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Group', $object->setOffsetY(rand(1, 100)));
     $this->assertEquals(20, $object->getOffsetY());
 }