1 | <?php |
||
14 | class Foreign extends Definition\Item { |
||
15 | |||
16 | protected $table = '', $field = '', $delete = null, $update = null; |
||
17 | |||
18 | /** |
||
19 | * Validate an action value |
||
20 | * |
||
21 | * @return string|null : the action or null if the value is invalid |
||
22 | */ |
||
23 | |||
24 | private function validateAction(string $value) { |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | */ |
||
34 | |||
35 | public function __construct(string $name, string $table, string $field, string $delete = null, string $update = null) { |
||
43 | |||
44 | /** |
||
45 | * Get the statement |
||
46 | */ |
||
47 | |||
48 | public function getStatement() : string { |
||
56 | } |
||
57 | } |
||
58 |