| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function setTOTP(TOTPInterface $totp) |
||
| 12 | { |
||
| 13 | $totp->setLabel('[email protected]'); |
||
| 14 | $this->URI = $totp->getProvisioningUri(); |
||
|
|
|||
| 15 | $this->save(); |
||
| 16 | |||
| 17 | return $this; |
||
| 18 | } |
||
| 19 | |||
| 48 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: