Skip to content

Commit

Permalink
Merge pull request #26 from ergebnis/fix/rename
Browse files Browse the repository at this point in the history
Fix: Rename parameter and field
  • Loading branch information
localheinz committed Jan 2, 2020
2 parents 48320e8 + cb4ff60 commit 5296fec
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/License/Header.php
Expand Up @@ -18,26 +18,26 @@
*/
final class Header
{
private $copyrightYear;
private $copyrightYears;

private $author;

private $notice;

private $url;

private function __construct(CopyrightYears $copyrightYear, Author $author, Notice $notice, Url $url)
private function __construct(CopyrightYears $copyrightYears, Author $author, Notice $notice, Url $url)
{
$this->copyrightYear = $copyrightYear;
$this->copyrightYears = $copyrightYears;
$this->author = $author;
$this->notice = $notice;
$this->url = $url;
}

public static function create(CopyrightYears $copyrightYear, Author $author, Notice $notice, Url $url): self
public static function create(CopyrightYears $copyrightYears, Author $author, Notice $notice, Url $url): self
{
return new self(
$copyrightYear,
$copyrightYears,
$author,
$notice,
$url
Expand All @@ -48,14 +48,14 @@ public function toString(): string
{
if ($this->notice->isEmpty()) {
return <<<EOF
Copyright (c) {$this->copyrightYear->toString()} {$this->author->toString()}
Copyright (c) {$this->copyrightYears->toString()} {$this->author->toString()}
@see {$this->url->toString()}
EOF;
}

return <<<EOF
Copyright (c) {$this->copyrightYear->toString()} {$this->author->toString()}
Copyright (c) {$this->copyrightYears->toString()} {$this->author->toString()}
{$this->notice->toString()}
Expand Down

0 comments on commit 5296fec

Please sign in to comment.