Skip to content

Commit

Permalink
Fix: Rename parameter and field
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 2, 2020
1 parent 48320e8 commit cb4ff60
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/License/Header.php
Original file line number Diff line number Diff line change
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 cb4ff60

Please sign in to comment.