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

setAutoShrinkHorizontal() public method

Set horizontal auto shrink
public setAutoShrinkHorizontal ( boolean $value = null )
$value boolean
    public function setAutoShrinkHorizontal($value = null)
    {
        if (is_bool($value)) {
            $this->autoShrinkHorizontal = $value;
        }
        return $this;
    }

Usage Example

Example #1
0
 public function testGetSetHAutoShrink()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkHorizontal());
     $this->assertNull($object->hasAutoShrinkHorizontal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkHorizontal(2));
     $this->assertNull($object->hasAutoShrinkHorizontal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkHorizontal(true));
     $this->assertTrue($object->hasAutoShrinkHorizontal());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setAutoShrinkHorizontal(false));
     $this->assertFalse($object->hasAutoShrinkHorizontal());
 }