| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| 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 | 'category_id' => array( |
||
| 19 | 'type' => 'INT', |
||
| 20 | 'constraint' => 11, |
||
| 21 | 'null' => TRUE, |
||
| 22 | ), |
||
| 23 | 'name' => array( |
||
| 24 | 'type' => 'VARCHAR', |
||
| 25 | 'constraint' => 64, |
||
| 26 | ), |
||
| 27 | 'detail' => array( |
||
| 28 | 'type' => 'TEXT', |
||
| 29 | 'null' => TRUE, |
||
| 30 | ), |
||
| 31 | 'price' => array( |
||
| 32 | 'type' => 'INT', |
||
| 33 | 'constraint' => 11, |
||
| 34 | ), |
||
| 35 | 'img' => array( |
||
| 36 | 'type' => 'VARCHAR', |
||
| 37 | 'constraint' => 64, |
||
| 38 | 'null' => TRUE, |
||
| 39 | ), |
||
| 40 | )); |
||
| 41 | $this->dbforge->add_key('id', TRUE); |
||
| 42 | $this->dbforge->create_table('product'); |
||
| 43 | } |
||
| 44 | |||
| 51 |
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.