Skip to content

Commit ab5b2cd

Browse files
committed
Drop EntityId::getPrefixedId
1 parent 1ca5f0c commit ab5b2cd

3 files changed

Lines changed: 1 addition & 18 deletions

File tree

RELEASE-NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Removed `Claims::getHash` (and `Claims` no longer implements `Hashable`)
2222
* Removed `Claims::isEmpty` (you can use `StatementList::isEmpty` instead)
2323
* Removed `Claims::indexOf` (you can use `StatementList::getIndexByGuid` instead)
24+
* Removed `EntityId::getPrefixedId`, use `getSerialization` instead
2425

2526
#### Additions
2627

src/Entity/EntityId.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ public function getSerialization() {
2626
return $this->serialization;
2727
}
2828

29-
/**
30-
* Returns the id serialization.
31-
* @deprecated Use getSerialization instead.
32-
* (soft deprecation, this alias will stay until it is no longer used)
33-
*
34-
* @return string
35-
*/
36-
public function getPrefixedId() {
37-
return $this->serialization;
38-
}
39-
4029
/**
4130
* This is a human readable representation of the EntityId.
4231
* This format is allowed to change and should therefore not

tests/unit/Entity/EntityIdTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,4 @@ public function testReturnTypeOfToString( EntityId $id ) {
8181
$this->assertInternalType( 'string', $id->__toString() );
8282
}
8383

84-
/**
85-
* @dataProvider instanceProvider
86-
*/
87-
public function testGetPrefixedId( EntityId $id ) {
88-
$this->assertEquals( $id->getSerialization(), $id->getPrefixedId() );
89-
}
90-
9184
}

0 commit comments

Comments
 (0)