PhpOffice\PhpPresentation\Shape\Group::setOffsetX PHP Method

setOffsetX() public method

Ignores setting the X Offset, preserving the default behavior.
public setOffsetX ( integer $pValue ) : self
$pValue integer
return self
    public function setOffsetX($pValue = 0)
    {
        return $this;
    }

Usage Example

Exemplo n.º 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());
 }