PhpOffice\PhpPresentation\Style\Outline::setWidth PHP Méthode

setWidth() public méthode

Value in points
public setWidth ( integer $width ) : Outline
$width integer
Résultat Outline
    public function setWidth($width)
    {
        $this->width = intval($width);
        return $this;
    }

Usage Example

 /**
  * Test get/set width
  */
 public function testSetGetWidth()
 {
     $object = new Outline();
     $this->assertNull($object->getWidth());
     $value = rand(1, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setWidth($value));
     $this->assertEquals($value, $object->getWidth());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setWidth(1.5));
     $this->assertEquals(1, $object->getWidth());
 }
All Usage Examples Of PhpOffice\PhpPresentation\Style\Outline::setWidth