| Conditions | 1 |
| Paths | 1 |
| Total Lines | 43 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function up() |
||
| 11 | { |
||
| 12 | $this->dbforge->add_field(array( |
||
|
|
|||
| 13 | 'id' => array( |
||
| 14 | 'type' => 'INT', |
||
| 15 | 'constraint' => 11, |
||
| 16 | 'auto_increment' => TRUE |
||
| 17 | ), |
||
| 18 | 'name' => array( |
||
| 19 | 'type' => 'VARCHAR', |
||
| 20 | 'constraint' => '64', |
||
| 21 | ), |
||
| 22 | 'email' => array( |
||
| 23 | 'type' => 'VARCHAR', |
||
| 24 | 'constraint' => '64', |
||
| 25 | 'null' => TRUE, |
||
| 26 | ), |
||
| 27 | 'subject' => array( |
||
| 28 | 'type' => 'VARCHAR', |
||
| 29 | 'constraint' => '128', |
||
| 30 | 'null' => TRUE, |
||
| 31 | ), |
||
| 32 | 'body' => array( |
||
| 33 | 'type' => 'TEXT', |
||
| 34 | 'null' => TRUE, |
||
| 35 | ), |
||
| 36 | 'password' => array( |
||
| 37 | 'type' => 'VARCHAR', |
||
| 38 | 'constraint' => '32', |
||
| 39 | 'null' => TRUE, |
||
| 40 | ), |
||
| 41 | 'ip_address' => array( |
||
| 42 | 'type' => 'VARCHAR', |
||
| 43 | 'constraint' => '39', |
||
| 44 | 'null' => TRUE, |
||
| 45 | ), |
||
| 46 | )); |
||
| 47 | $this->dbforge->add_field( |
||
| 48 | '`datetime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP' |
||
| 49 | ); |
||
| 50 | $this->dbforge->add_key('id', TRUE); |
||
| 51 | $this->dbforge->create_table('bbs'); |
||
| 52 | } |
||
| 53 | |||
| 60 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.