Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function up() |
||
11 | { |
||
12 | $this->dbforge->add_field(array( |
||
|
|||
13 | 'captcha_id' => array( |
||
14 | 'type' => 'BIGINT', |
||
15 | 'constraint' => 13, |
||
16 | 'unsigned' => TRUE, |
||
17 | 'auto_increment' => TRUE |
||
18 | ), |
||
19 | 'captcha_time' => array( |
||
20 | 'type' => 'INT', |
||
21 | 'constraint' => 10, |
||
22 | 'unsigned' => TRUE, |
||
23 | ), |
||
24 | 'word' => array( |
||
25 | 'type' => 'VARCHAR', |
||
26 | 'constraint' => '20', |
||
27 | ), |
||
28 | )); |
||
29 | $this->dbforge->add_key('captcha_id', TRUE); |
||
30 | $this->dbforge->add_key('word'); |
||
31 | $this->dbforge->create_table('captcha'); |
||
32 | } |
||
33 | |||
40 |
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@property
annotation 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.