Skip to content

Commit

Permalink
Move SVGImage::toXMLString() near __toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa committed Oct 13, 2016
1 parent dbbb51a commit ef255a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/SVGImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ public function getDocument()
return $this->document;
}

public function toXMLString()
{
$writer = new SVGWriter();
$writer->writeNode($this->document);

return $writer->getString();
}

public function toRasterImage($width, $height)
{
$docWidth = $this->document->getWidth();
Expand All @@ -50,6 +42,14 @@ public function __toString()
return $this->toXMLString();
}

public function toXMLString()
{
$writer = new SVGWriter();
$writer->writeNode($this->document);

return $writer->getString();
}

public static function fromString($string)
{
return self::getReader()->parseString($string);
Expand Down

0 comments on commit ef255a6

Please sign in to comment.