1 | <?php |
||
30 | class Identifier |
||
31 | { |
||
32 | /** |
||
33 | * @var int |
||
34 | */ |
||
35 | public $bookingMethod; |
||
36 | |||
37 | /** |
||
38 | * @var string|null |
||
39 | */ |
||
40 | public $RFIC = null; |
||
41 | |||
42 | /** |
||
43 | * @var string|null |
||
44 | */ |
||
45 | public $RFISC = null; |
||
46 | |||
47 | /** |
||
48 | * @var string|null |
||
49 | */ |
||
50 | public $Code = null; |
||
51 | |||
52 | /** |
||
53 | * Identifier constructor. |
||
54 | * |
||
55 | * @param Identifier $identifierOptions |
||
56 | */ |
||
57 | public function __construct($identifierOptions) |
||
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: