Skip to content

Commit

Permalink
mark entities immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Dec 20, 2020
1 parent 95f496b commit 2c72944
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Database/Countries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Sokil\IsoCodes\Database\Countries;
use Sokil\IsoCodes\TranslationDriver\TranslatorInterface;

/**
* @psalm-immutable
*/
class Country
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Database/Currencies/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Sokil\IsoCodes\Database\Currencies;
use Sokil\IsoCodes\TranslationDriver\TranslatorInterface;

/**
* @psalm-immutable
*/
class Currency
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Database/HistoricCountries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Sokil\IsoCodes\Database\HistoricCountries;
use Sokil\IsoCodes\TranslationDriver\TranslatorInterface;

/**
* @psalm-immutable
*/
class Country
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Database/Languages/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Sokil\IsoCodes\Database\Languages;
use Sokil\IsoCodes\TranslationDriver\TranslatorInterface;

/**
* @psalm-immutable
*/
class Language
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Database/Scripts/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Sokil\IsoCodes\Database\Scripts;
use Sokil\IsoCodes\TranslationDriver\TranslatorInterface;

/**
* @psalm-immutable
*/
class Script
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Database/Subdivisions/Subdivision.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Sokil\IsoCodes\Database\Subdivisions;
use Sokil\IsoCodes\TranslationDriver\TranslatorInterface;

/**
* @psalm-immutable
*/
class Subdivision
{
/**
Expand Down

0 comments on commit 2c72944

Please sign in to comment.