CreditResponse::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 5
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rezahmady\Smsir\Responses;
6
7
class CreditResponse extends BaseResponse
8
{
9
    /**
10
     * @var float
11
     */
12
    public $credit;
13
14
    public function __construct(bool $isSuccessful, string $message, float $credit)
15
    {
16
        $this->isSuccessful = $isSuccessful;
17
        $this->message = $message;
18
        $this->credit = $credit;
19
    }
20
}
21