Conditions | 3 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function add(string $name, string $table, string $field, string $delete = null, string $update = null) { |
||
21 | |||
22 | if ((false === $this->definition->getParam($name)) || isset($this->list[$name])) return; |
||
23 | |||
24 | $this->list[$name] = new Definition\Item\Foreign($name, $table, $field, $delete, $update); |
||
25 | } |
||
26 | } |
||
28 |