PhpOffice\PhpPresentation\Shape\RichText::setWrap PHP Method

setWrap() public method

Set text wrapping
public setWrap ( $value = self::WRAP_SQUARE ) : RichText
$value string
return RichText
    public function setWrap($value = self::WRAP_SQUARE)
    {
        $this->wrap = $value;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function testGetSetWrap()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setWrap());
     $this->assertEquals(RichText::WRAP_SQUARE, $object->getWrap());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setWrap(RichText::WRAP_NONE));
     $this->assertEquals(RichText::WRAP_NONE, $object->getWrap());
 }