Total Complexity | 6 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class CustomerBankAccount extends \Lendable\GoCardlessEnterprise\Model\CustomerBankAccount |
||
8 | { |
||
9 | public function __construct() |
||
10 | { |
||
11 | $this->mandates = new ArrayCollection(); |
||
|
|||
12 | } |
||
13 | |||
14 | /** |
||
15 | * @param Mandate $mandate |
||
16 | */ |
||
17 | public function addMandate(Mandate $mandate) |
||
18 | { |
||
19 | $this->mandates[] = $mandate; |
||
20 | $mandate->setCustomerBankAccount($this); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param Mandate $mandate |
||
25 | */ |
||
26 | public function removeMandate(Mandate $mandate) |
||
29 | } |
||
30 | |||
31 | public function fromArray($data) |
||
39 | } |
||
40 | } |
||
41 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..