Example #1
0
 public function copy()
 {
     $boundary = clone $this->getBoundary();
     $copy = parent::copy();
     if ($this->graphicsContext) {
         $graphicsContext = $this->getGraphicsContext();
         $clonedGraphicsContext = $graphicsContext->copy();
         $copy->graphicsContext = $clonedGraphicsContext;
     }
     $copy->setBoundary($boundary);
     foreach ($this->runtimeNodes as $index => $node) {
         $clonedNode = $node->copyAsRuntime();
         $clonedNode->setPage($copy);
         $copy->runtimeNodes[$index] = $clonedNode;
     }
     return $copy;
 }
Example #2
0
 public function copy()
 {
     $copy = parent::copy();
     $copy->lines = array();
     return $copy;
 }
Example #3
0
 public function copy()
 {
     $node = parent::copy();
     $node->setOmitEnumerationOfFirstElement(false);
     return $node;
 }