PhpOffice\PhpPresentation\Shape\Group::setWidth PHP Метод

setWidth() публичный Метод

Ignores setting the width, preserving the default behavior.
public setWidth ( integer $pValue ) : self
$pValue integer
Результат 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)));
 }