1 | <?php |
||
11 | class InsertCommand extends TableCommand |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $context = []; |
||
17 | |||
18 | /** |
||
19 | * Set when command is executed. |
||
20 | * |
||
21 | * @var null|mixed |
||
22 | */ |
||
23 | private $inserID = null; |
||
24 | |||
25 | /** |
||
26 | * @param Table $table |
||
27 | * @param array $context |
||
28 | */ |
||
29 | public function __construct(Table $table, array $context) |
||
34 | |||
35 | /** |
||
36 | * Get inserted row id. |
||
37 | * |
||
38 | * @return mixed|null |
||
39 | */ |
||
40 | public function getInsertID() |
||
44 | |||
45 | /** |
||
46 | * Inserting data into associated table. |
||
47 | */ |
||
48 | public function execute() |
||
54 | } |
||
55 |