public setWrap ( $value = self::WRAP_SQUARE ) : |
||
$value | string | |
return |
public function setWrap($value = self::WRAP_SQUARE)
{
$this->wrap = $value;
return $this;
}
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()); }