Skip to content

Commit aa6460a

Browse files
committed
refactor! Formally mark that xxxHandler classes are @internal
End-users are not expected to reference these classes directly. If users want to customise handling for a particular operation, they should implement the interface and/or extend from the abstract base class.
1 parent d21f496 commit aa6460a

6 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/operations/handlers/AddHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use blancks\JsonPatch\json\accessors\UndefinedValue;
66
use blancks\JsonPatch\operations\PatchOperation;
77

8+
/**
9+
* @internal
10+
*/
811
final class AddHandler extends PatchOperation
912
{
1013
private mixed $previous;

src/operations/handlers/CopyHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use blancks\JsonPatch\json\accessors\UndefinedValue;
66
use blancks\JsonPatch\operations\PatchOperation;
77

8+
/**
9+
* @internal
10+
*/
811
final class CopyHandler extends PatchOperation
912
{
1013
private mixed $previous;

src/operations/handlers/MoveHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use blancks\JsonPatch\operations\PatchOperation;
66

7+
/**
8+
* @internal
9+
*/
710
final class MoveHandler extends PatchOperation
811
{
912
/**

src/operations/handlers/RemoveHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use blancks\JsonPatch\operations\PatchOperation;
66

7+
/**
8+
* @internal
9+
*/
710
final class RemoveHandler extends PatchOperation
811
{
912
private mixed $previous;

src/operations/handlers/ReplaceHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use blancks\JsonPatch\operations\PatchOperation;
66

7+
/**
8+
* @internal
9+
*/
710
final class ReplaceHandler extends PatchOperation
811
{
912
private mixed $previous;

src/operations/handlers/TestHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use blancks\JsonPatch\exceptions\FailedTestException;
66
use blancks\JsonPatch\operations\PatchOperation;
77

8+
/**
9+
* @internal
10+
*/
811
final class TestHandler extends PatchOperation
912
{
1013
/**

0 commit comments

Comments
 (0)