Skip to content

Commit 1c9d92c

Browse files
committed
Remove PushwooshException->setData(...).
1 parent e42e261 commit 1c9d92c

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/main/php/Gomoob/Pushwoosh/Exception/PushwooshException.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ class PushwooshException extends \Exception
3333
*/
3434
public function __construct($message = null, $code = null, $previous = null, array $data = [])
3535
{
36-
3736
parent::__construct($message, $code, $previous);
38-
39-
$this->data = $data;
4037

38+
$this->data = $data;
4139
}
4240

4341

@@ -51,17 +49,4 @@ public function getData()
5149
{
5250
return $this->data;
5351
}
54-
55-
/**
56-
* Sets the additional data attached to the exception, those data must be represented as an array which is
57-
* serializable in a JSON format.
58-
*
59-
* @param array $data Additional data / details to attach to the exception.
60-
*/
61-
public function setData(array $data)
62-
{
63-
64-
$this->data = $data;
65-
66-
}
6752
}

0 commit comments

Comments
 (0)