| Conditions | 3 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function add(string $name, string $table, string $field, string $delete = null, string $update = null) { |
||
| 12 | |||
| 13 | if (!isset($this->definition->params()[$name]) || isset($this->list[$name])) return; |
||
| 14 | |||
| 15 | $this->list[$name] = new Definition\Item\Foreign($name, $table, $field, $delete, $update); |
||
| 16 | } |
||
| 17 | } |
||
| 19 |