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

setInsetBottom() public method

Set bottom inset
public setInsetBottom ( $value = 4.8 ) : RichText
$value float
return RichText
    public function setInsetBottom($value = 4.8)
    {
        $this->bottomInset = $value;
        return $this;
    }

Usage Example

Example #1
0
 public function testGetSetInset()
 {
     $object = new RichText();
     // Default
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetBottom());
     $this->assertEquals(4.8, $object->getInsetBottom());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetLeft());
     $this->assertEquals(9.6, $object->getInsetLeft());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetRight());
     $this->assertEquals(9.6, $object->getInsetRight());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetTop());
     $this->assertEquals(4.8, $object->getInsetTop());
     // Value
     $value = rand(1, 100);
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetBottom($value));
     $this->assertEquals($value, $object->getInsetBottom());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetLeft($value));
     $this->assertEquals($value, $object->getInsetLeft());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetRight($value));
     $this->assertEquals($value, $object->getInsetRight());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setInsetTop($value));
     $this->assertEquals($value, $object->getInsetTop());
 }