Skip to content

Commit

Permalink
Fix: Add property type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 3, 2022
1 parent 17af90e commit 58a9dc2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 23 deletions.
8 changes: 4 additions & 4 deletions src/File.php
Expand Up @@ -15,10 +15,10 @@

final class File
{
private $name;
private $template;
private $period;
private $holder;
private string $name;
private Template $template;
private Period $period;
private Holder $holder;

private function __construct(
string $name,
Expand Down
10 changes: 5 additions & 5 deletions src/Header.php
Expand Up @@ -15,11 +15,11 @@

final class Header
{
private $template;
private $period;
private $holder;
private $file;
private $url;
private Template $template;
private Period $period;
private Holder $holder;
private File $file;
private Url $url;

private function __construct(
Template $template,
Expand Down
2 changes: 1 addition & 1 deletion src/Holder.php
Expand Up @@ -17,7 +17,7 @@

final class Holder
{
private $value;
private string $value;

private function __construct(string $value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Range.php
Expand Up @@ -15,7 +15,7 @@

final class Range implements Period
{
private $value;
private string $value;

private function __construct(string $value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Template.php
Expand Up @@ -15,7 +15,7 @@

final class Template
{
private $value;
private string $value;

private function __construct(string $value)
{
Expand Down
11 changes: 2 additions & 9 deletions src/Type/MIT.php
Expand Up @@ -22,15 +22,8 @@

final class MIT
{
/**
* @var File
*/
private $file;

/**
* @var Header
*/
private $header;
private File $file;
private Header $header;

private function __construct(
string $name,
Expand Down
2 changes: 1 addition & 1 deletion src/Url.php
Expand Up @@ -15,7 +15,7 @@

final class Url
{
private $value;
private string $value;

private function __construct(string $value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Year.php
Expand Up @@ -15,7 +15,7 @@

final class Year implements Period
{
private $value;
private string $value;

private function __construct(string $value)
{
Expand Down

0 comments on commit 58a9dc2

Please sign in to comment.