@@ 95-101 (lines=7) @@ | ||
92 | return $that->attributes; |
|
93 | } |
|
94 | ||
95 | public function buildMany($count, $override_attributes) |
|
96 | { |
|
97 | $override_attributes = $this->expandAttributesForList($override_attributes, $count); |
|
98 | return array_map(function ($i) use ($override_attributes) { |
|
99 | return $this->build($override_attributes[$i]); |
|
100 | }, range(0, $count - 1)); |
|
101 | } |
|
102 | ||
103 | protected function expandAttributesForList($attributes, $count) |
|
104 | { |
|
@@ 117-123 (lines=7) @@ | ||
114 | }, $attributes); |
|
115 | } |
|
116 | ||
117 | public function createMany($count, $override_attributes) |
|
118 | { |
|
119 | $override_attributes = $this->expandAttributesForList($override_attributes, $count); |
|
120 | return array_map(function ($i) use ($override_attributes) { |
|
121 | return $this->create($override_attributes[$i]); |
|
122 | }, range(0, $count - 1)); |
|
123 | } |
|
124 | ||
125 | public function define($name, $definitionCallback) |
|
126 | { |