Naneau\SemVer\Version::__toString PHP Method

__toString() public method

String representation of this Version
public __toString ( ) : string
return string
    public function __toString()
    {
        $string = parent::__toString();
        // Add pre-release
        if ($this->hasPreRelease()) {
            $string .= '-' . $this->getPreRelease();
        }
        // Add build
        if ($this->hasBuild()) {
            $string .= '+' . $this->getBuild();
        }
        return $string;
    }