-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add telecom network type and extract phone number
- Loading branch information
1 parent
b91034a
commit b4d4360
Showing
18 changed files
with
346 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class ExtractMec | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): array { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::extractMec($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class ExtractMpt | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): array { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::extractMpt($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class ExtractMyanmarPhoneNumber | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): array { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::extractMyanmarPhoneNumber($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class ExtractMytel | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): array { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::extractMytel($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class ExtractOoredoo | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): array { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::extractOoredoo($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class ExtractTelenor | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): array { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::extractTelenor($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Request; | ||
|
||
use Illuminate\Support\Str; | ||
|
||
class TelecomNetworkType | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $key): string { | ||
/** @var \Illuminate\Http\Request $this */ | ||
return Str::telecomNetworkType($this->input($key)); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class ExtractMec | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): array { | ||
return (new PhoneNumber())->extractMec($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class ExtractMpt | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): array { | ||
return (new PhoneNumber())->extractMpt($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class ExtractMyanmarPhoneNumber | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): array { | ||
return (new PhoneNumber())->extractMyanmarPhoneNumber($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class ExtractMytel | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): array { | ||
return (new PhoneNumber())->extractMytel($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class ExtractOoredoo | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): array { | ||
return (new PhoneNumber())->extractOoredoo($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class ExtractTelenor | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): array { | ||
return (new PhoneNumber())->extractTelenor($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace PyaeSoneAung\LaravelMyanmarTools\Macros\Str; | ||
|
||
use LaravelMyanmarTools\PhoneNumber\PhoneNumber; | ||
|
||
class TelecomNetworkType | ||
{ | ||
public function __invoke() | ||
{ | ||
return function (string $value): string { | ||
return (new PhoneNumber())->getNetworkType($value); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.