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

setWidth() public method

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

Usage Example

示例#1
0
 public function testConstruct()
 {
     $object = new Group();
     $this->assertEquals(0, $object->getOffsetX());
     $this->assertEquals(0, $object->getOffsetY());
     $this->assertEquals(0, $object->getExtentX());
     $this->assertEquals(0, $object->getExtentY());
     $this->assertEquals(0, $object->getShapeCollection()->count());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Group', $object->setWidth(rand(1, 100)));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Group', $object->setHeight(rand(1, 100)));
 }