| Conditions | 4 |
| Paths | 8 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | public function __construct($identifierOptions) |
||
| 58 | { |
||
| 59 | $this->bookingMethod = $identifierOptions->bookingMethod; |
||
| 60 | |||
| 61 | if ($identifierOptions->code) { |
||
| 62 | $this->Code = $identifierOptions->code; |
||
|
|
|||
| 63 | } |
||
| 64 | |||
| 65 | if ($identifierOptions->RFISC) { |
||
| 66 | $this->RFISC = $identifierOptions->RFISC; |
||
| 67 | } |
||
| 68 | |||
| 69 | if ($identifierOptions->RFIC) { |
||
| 70 | $this->RFIC = $identifierOptions->RFIC; |
||
| 71 | } |
||
| 72 | } |
||
| 73 | } |
||
| 74 |
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: