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

setUpright() public method

Set vertical
public setUpright ( $value = false ) : RichText
$value boolean
return RichText
    public function setUpright($value = false)
    {
        $this->upright = $value;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function testGetSetUpright()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setUpright());
     $this->assertFalse($object->isUpright());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setUpright(true));
     $this->assertTrue($object->isUpright());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setUpright(false));
     $this->assertFalse($object->isUpright());
 }