Skip to content

Commit 44b3988

Browse files
committed
The 2 enum values EmailAddressParsingResultType DEPARTMENT and TECHNICAL have been merged into FUNCTIONAL.
1 parent f3347b6 commit 44b3988

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/org/nameapi/client/services/email/emailnameparser/EmailAddressParsingResultType.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
*
99
* Possible values are:
1010
*
11-
* DEPARTMENT
12-
* The email address belongs to a department, such as [email protected].
13-
*
14-
* TECHNICAL
15-
* It is a technical email address for the domain, such as [email protected].
11+
* FUNCTIONAL
12+
* The email address belongs to a department (eg [email protected]) or is
13+
* technical (eg [email protected]).
1614
*
1715
* INITIALS
1816
* The email address contains a person's initials such as [email protected].
@@ -43,8 +41,7 @@ final class EmailAddressParsingResultType {
4341
private $value = null;
4442

4543
public function __construct($value) {
46-
if ($value!=='DEPARTMENT'
47-
&& $value!=='TECHNICAL'
44+
if ($value!=='FUNCTIONAL'
4845
&& $value!=='INITIALS'
4946
&& $value!=='PERSON_NAME'
5047
&& $value!=='PSEUDONYM'

tests/functional/org/nameapi/client/services/email/emailnameparser/EmailNameParserServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testParse_John_F_Doe() {
3131
public function testParse_webmaster() {
3232
$emailNameParser = $this->makeServiceFactory()->emailServices()->emailNameParser();
3333
$result = $emailNameParser->parse("[email protected]");
34-
$this->assertEquals('TECHNICAL', (string)$result->getResultType());
34+
$this->assertEquals('FUNCTIONAL', (string)$result->getResultType());
3535
}
3636

3737
}

0 commit comments

Comments
 (0)