Skip to content

Commit

Permalink
Add short country code source setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Mar 19, 2023
1 parent 3c92884 commit a6ce2cd
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dev/DataSource/CountryShort/CountryAlpha2Source.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);

namespace PrinsFrank\Standards\Dev\DataSource\CountryShort;

use PrinsFrank\Standards\CountryShort\CountryAlpha2;
use PrinsFrank\Standards\Dev\DataSource\Country\ISO3166_1_Alpha_2_Source;

class CountryAlpha2Source extends ISO3166_1_Alpha_2_Source
{
public static function getSpecFQN(): string
{
return CountryAlpha2::class;
}
}
15 changes: 15 additions & 0 deletions dev/DataSource/CountryShort/CountryAlpha3Source.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);

namespace PrinsFrank\Standards\Dev\DataSource\CountryShort;

use PrinsFrank\Standards\CountryShort\CountryAlpha3;
use PrinsFrank\Standards\Dev\DataSource\Country\ISO3166_1_Alpha_3_Source;

class CountryAlpha3Source extends ISO3166_1_Alpha_3_Source
{
public static function getSpecFQN(): string
{
return CountryAlpha3::class;
}
}
15 changes: 15 additions & 0 deletions dev/DataSource/CountryShort/CountryNameSource.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);

namespace PrinsFrank\Standards\Dev\DataSource\CountryShort;

use PrinsFrank\Standards\CountryShort\CountryName;
use PrinsFrank\Standards\Dev\DataSource\Country\ISO3166_1_Name_Source;

class CountryNameSource extends ISO3166_1_Name_Source
{
public static function getSpecFQN(): string
{
return CountryName::class;
}
}
15 changes: 15 additions & 0 deletions dev/DataSource/CountryShort/CountryNumericSource.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);

namespace PrinsFrank\Standards\Dev\DataSource\CountryShort;

use PrinsFrank\Standards\CountryShort\CountryNumeric;
use PrinsFrank\Standards\Dev\DataSource\Country\ISO3166_1_Numeric_Source;

class CountryNumericSource extends ISO3166_1_Numeric_Source
{
public static function getSpecFQN(): string
{
return CountryNumeric::class;
}
}

0 comments on commit a6ce2cd

Please sign in to comment.