Test Failed
Pull Request — master (#58)
by
unknown
03:22
created

FetchException::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace shweshi\OpenGraph\Exceptions;
4
5
class FetchException extends \Exception
6
{
7
    public function __construct(
8
        $message = '',
9
        $code = 0,
10
        Throwable $previous = null,
0 ignored issues
show
Bug introduced by
The type shweshi\OpenGraph\Exceptions\Throwable was not found. Did you mean Throwable? If so, make sure to prefix the type with \.
Loading history...
11
        $data = []
12
    ) {
13
        parent::__construct($message, $code, $previous);
14
        $this->data = $data;
0 ignored issues
show
Bug Best Practice introduced by
The property data does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
15
    }
16
17
    public function getData()
18
    {
19
        return $this->data;
20
    }
21
}
22