File tree Expand file tree Collapse file tree
src/LIN3S/SharedKernel/Domain/Model/Phone Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ This changelog references the relevant changes done between versions.
55To get the diff for a specific change, go to https://github.com/LIN3S/SharedKernel/commit/XXX where XXX is the change hash
66To get the diff between two versions, go to https://github.com/LIN3S/SharedKernel/compare/v0.8.0...v0.9.0
77
8+ * 0.9.6
9+ * Added ` nationalPhone ` in the Phone value object.
810* 0.9.5
911 * Allowed multiple tags with the same subscriber,
1012* 0.9.4
Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ public function phone() : string
5555 return PhoneNumberUtil::getInstance ()->format ($ this ->phone , PhoneNumberFormat::E164 );
5656 }
5757
58+ public function nationalPhone () : string
59+ {
60+ return PhoneNumberUtil::getInstance ()->getNationalSignificantNumber ($ this ->phone );
61+ }
62+
5863 public function phoneCallingFrom ($ region ) : string
5964 {
6065 return PhoneNumberUtil::getInstance ()->formatOutOfCountryCallingNumber ($ this ->phone , $ region );
You can’t perform that action at this time.
0 commit comments