setOffsetX() public method

Ignores setting the X Offset, preserving the default behavior.
public setOffsetX ( integer $pValue ) : self
$pValue integer
return self
Example #1
0
 public function testOffsetX()
 {
     $object = new Group();
     $line1 = new Line(10, 20, 30, 40);
     $object->addShape($line1);
     $this->assertEquals(10, $object->getOffsetX());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Group', $object->setOffsetX(rand(1, 100)));
     $this->assertEquals(10, $object->getOffsetX());
 }