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; }
public function copy() { $copy = parent::copy(); $copy->lines = array(); return $copy; }
public function copy() { $node = parent::copy(); $node->setOmitEnumerationOfFirstElement(false); return $node; }