Esempio n. 1
0
 public function testToArray()
 {
     $this->assertCount(0, $this->margin->toArray());
 }
Esempio n. 2
0
 /**
  * Set the page footer caption and optional margin.
  *
  * @param string $string The footer text
  * @param float  $margin optional foot margin in inches.
  *
  * @return PrintSetup
  */
 public function setFooter($string, $margin = 0.5)
 {
     $this->footer = $this->truncateStringIfNeeded($string);
     $this->margin->setFoot($margin);
     return $this;
 }
Esempio n. 3
0
 /**
  * @param Margin margin
  * @return Cluster
  */
 public function setMargin(Margin $margin)
 {
     $this->set($margin->getName(), $margin->getValue());
     return $this;
 }