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

setOffsetY() public method

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

Usage Example

コード例 #1
0
ファイル: GroupTest.php プロジェクト: hxsam/PHPPresentation
 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());
 }