PHPRtfLite::getBorder PHP Метод

getBorder() публичный Метод

gets border of document
public getBorder ( ) : PHPRtfLite_Border
Результат PHPRtfLite_Border
    public function getBorder()
    {
        return $this->_border;
    }

Usage Example

Пример #1
0
 /**
  * tests setBorders
  * @covers PHPRtfLite::getBorder
  */
 public function testSetBorders()
 {
     $borderFormat = new PHPRtfLite_Border_Format();
     $this->_rtf->setBorders($borderFormat);
     $border = $this->_rtf->getBorder();
     if ($border) {
         $this->assertEquals($borderFormat, $border->getBorderBottom());
         $this->assertEquals($borderFormat, $border->getBorderTop());
         $this->assertEquals($borderFormat, $border->getBorderLeft());
         $this->assertEquals($borderFormat, $border->getBorderRight());
         return;
     }
     $this->fail();
 }