ChangelogManagerInterface

Interface

Applies changelog mutations and derives release metadata.

Table of Contents

Methods

addEntry()

Adds a changelog entry to the selected release section.

 : void
inferNextVersion()

Returns the next semantic version inferred from unreleased entries.

 : string
load()

Loads and parses the changelog file.

 : ChangelogDocument
promote()

Promotes the Unreleased section into a published release.

 : void
renderReleaseNotes()

Returns the rendered notes body for a specific released version.

 : string
Methods

inferNextVersion()

Public

Returns the next semantic version inferred from unreleased entries.

public inferNextVersion( string  $file[, string|null  $currentVersion = null]) : string
Parameters
$file : string
$currentVersion : string|null = null
Return values
string

promote()

Public

Promotes the Unreleased section into a published release.

public promote( string  $file, string  $version, string  $date) : void
Parameters
$file : string
$version : string
$date : string

renderReleaseNotes()

Public

Returns the rendered notes body for a specific released version.

public renderReleaseNotes( string  $file, string  $version) : string
Parameters
$file : string
$version : string
Return values
string