CreditResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
c 1
b 0
f 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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