Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
6 | class SuccessResult extends GenericResult { |
||
7 | |||
8 | public const RESULT_SUCCESS = 0; |
||
9 | |||
10 | /** |
||
11 | * A new success result |
||
12 | * |
||
13 | * @param mixed $result The result |
||
14 | */ |
||
15 | public function __construct($result) { |
||
16 | $this->setResult($result); |
||
17 | $this->setStatusCode(self::RESULT_SUCCESS); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Returns a new instance of this class |
||
22 | * |
||
23 | * @param mixed $result A result of some kind? |
||
24 | * |
||
25 | * @return SuccessResult |
||
26 | */ |
||
27 | public static function getInstance($result) { |
||
30 | } |
||
31 | } |
||
32 |