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

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

Set Width
public setWidth ( integer $pValue ) : self
$pValue integer
Результат self
    public function setWidth($pValue = 0)
    {
        return $this;
    }

Usage Example

Пример #1
0
 public function testGetSetHeightAndWidtg()
 {
     $object = new Comment();
     $this->assertNull($object->getHeight());
     $this->assertNull($object->getWidth());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setHeight(1));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setWidth(1));
     $this->assertNull($object->getHeight());
     $this->assertNull($object->getWidth());
 }