File tree 4 files changed +19
-15
lines changed
4 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Swaggest \JsonDiff ;
4
4
5
+ use Swaggest \JsonDiff \JsonPatch \OpPath ;
5
6
use Throwable ;
6
7
7
8
class MissingFieldException extends Exception
8
9
{
9
10
/** @var string */
10
11
private $ missingField ;
11
- /** @var object */
12
+ /** @var OpPath| object */
12
13
private $ operation ;
13
14
14
15
/**
15
16
* @param string $missingField
16
- * @param object $operation
17
+ * @param OpPath| object $operation
17
18
* @param int $code
18
19
* @param Throwable|null $previous
19
20
*/
@@ -38,7 +39,7 @@ public function getMissingField()
38
39
}
39
40
40
41
/**
41
- * @return object
42
+ * @return OpPath| object
42
43
*/
43
44
public function getOperation ()
44
45
{
Original file line number Diff line number Diff line change 3
3
namespace Swaggest \JsonDiff ;
4
4
5
5
6
+ use Swaggest \JsonDiff \JsonPatch \Test ;
6
7
use Throwable ;
7
8
8
9
class PatchTestOperationFailedException extends Exception
9
10
{
10
- /** @var object */
11
+ /** @var Test */
11
12
private $ operation ;
12
- /** @var string */
13
+ /** @var mixed */
13
14
private $ actualValue ;
14
15
15
16
/**
16
- * @param object $operation
17
- * @param string $actualValue
17
+ * @param Test $operation
18
+ * @param mixed $actualValue
18
19
* @param int $code
19
20
* @param Throwable|null $previous
20
21
*/
@@ -32,15 +33,15 @@ public function __construct(
32
33
}
33
34
34
35
/**
35
- * @return object
36
+ * @return Test
36
37
*/
37
38
public function getOperation ()
38
39
{
39
40
return $ this ->operation ;
40
41
}
41
42
42
43
/**
43
- * @return string
44
+ * @return mixed
44
45
*/
45
46
public function getActualValue ()
46
47
{
Original file line number Diff line number Diff line change 3
3
namespace Swaggest \JsonDiff ;
4
4
5
5
6
+ use Swaggest \JsonDiff \JsonPatch \OpPath ;
6
7
use Throwable ;
7
8
8
9
class PathException extends Exception
9
10
{
10
- /** @var object */
11
+ /** @var OpPath */
11
12
private $ operation ;
12
13
13
14
/** @var string */
14
15
private $ field ;
15
16
16
17
/**
17
18
* @param string $message
18
- * @param object $operation
19
+ * @param OpPath $operation
19
20
* @param string $field
20
21
* @param int $code
21
22
* @param Throwable|null $previous
@@ -34,7 +35,7 @@ public function __construct(
34
35
}
35
36
36
37
/**
37
- * @return object
38
+ * @return OpPath
38
39
*/
39
40
public function getOperation ()
40
41
{
Original file line number Diff line number Diff line change 3
3
namespace Swaggest \JsonDiff ;
4
4
5
5
6
+ use Swaggest \JsonDiff \JsonPatch \OpPath ;
6
7
use Throwable ;
7
8
8
9
class UnknownOperationException extends Exception
9
10
{
10
- /** @var object */
11
+ /** @var OpPath| object */
11
12
private $ operation ;
12
13
13
14
/**
14
- * @param object $operation
15
+ * @param OpPath| object $operation
15
16
* @param int $code
16
17
* @param Throwable|null $previous
17
18
*/
@@ -27,7 +28,7 @@ public function __construct(
27
28
}
28
29
29
30
/**
30
- * @return object
31
+ * @return OpPath| object
31
32
*/
32
33
public function getOperation ()
33
34
{
You can’t perform that action at this time.
0 commit comments