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

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

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