Skip to content

Commit 5ba2dd7

Browse files
committed
refactor: removed interfaces for abstract classes
1 parent 0b877b6 commit 5ba2dd7

File tree

4 files changed

+12
-36
lines changed

4 files changed

+12
-36
lines changed

src/Coder/Coder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
abstract class Coder implements CoderInterface
1010
{
11+
/**
12+
* @throws Exception\CoderCouldNotEncodeData
13+
*/
1114
public function encode(string $decoded): string
1215
{
1316
try {
@@ -20,6 +23,9 @@ public function encode(string $decoded): string
2023
}
2124
}
2225

26+
/**
27+
* @throws Exception\CoderCouldNotDecodeData
28+
*/
2329
public function decode(string $encoded): string
2430
{
2531
try {

src/Coder/CoderInterface.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Serializer/Serializer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
abstract class Serializer implements SerializerInterface
1010
{
11+
/**
12+
* @throws Exception\SerializerCouldNotSerializeData
13+
*/
1114
public function serialize(mixed $serializable): string
1215
{
1316
try {
@@ -20,6 +23,9 @@ public function serialize(mixed $serializable): string
2023
}
2124
}
2225

26+
/**
27+
* @throws Exception\SerializerCouldNotUnserializeData
28+
*/
2329
public function unserialize(string $serialized): mixed
2430
{
2531
try {

src/Serializer/SerializerInterface.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)