@@ 70-78 (lines=9) @@ | ||
67 | * @param string $name |
|
68 | * @return array |
|
69 | */ |
|
70 | protected function createField(int $id, string $name) |
|
71 | { |
|
72 | return [ |
|
73 | 'id' => $id, |
|
74 | 'name' => $name, |
|
75 | 'created_at' => $this->now, |
|
76 | 'updated_at' => $this->now, |
|
77 | ]; |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * @param int $fieldId |
@@ 83-91 (lines=9) @@ | ||
80 | * |
|
81 | * @return array |
|
82 | */ |
|
83 | protected function createProduct(array $product) |
|
84 | { |
|
85 | return [ |
|
86 | 'id' => $product['id'], |
|
87 | 'name' => $product['name'], |
|
88 | 'created_at' => $this->now, |
|
89 | 'updated_at' => $this->now, |
|
90 | ]; |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * @param int $productId |