示例#1
0
 /**
  * Get spacing between lines
  *
  * @return int
  */
 public function getSpacing()
 {
     if ($this->spacing !== null) {
         return $this->spacing->getLine();
     } else {
         return null;
     }
 }
示例#2
0
 /**
  * Set shading
  *
  * @param array $value
  * @return self
  * @todo Rename to setSpacing in 1.0
  */
 public function setSpace($value = null)
 {
     if (is_array($value)) {
         if (!$this->spacing instanceof Spacing) {
             $this->spacing = new Spacing();
         }
         $this->spacing->setStyleByArray($value);
     } else {
         $this->spacing = null;
     }
     return $this;
 }