Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
58 | public function populate ( $array ) |
||
59 | { |
||
60 | if ( isset( $array[ 'schema' ] ) ) |
||
61 | { |
||
62 | $this->schema = $array[ 'schema' ]; |
||
63 | } |
||
64 | |||
65 | $this->database = $array[ 'database' ]; |
||
|
|||
66 | $this->constrant = $array[ 'constrant' ]; |
||
67 | $this->table = $array[ 'table' ]; |
||
68 | $this->column = $array[ 'column' ]; |
||
69 | |||
70 | return $this; |
||
71 | } |
||
72 | |||
115 |
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: