@@ -61,7 +61,7 @@ public function populateFromResponse(ResponseInterface $response): self
6161 public function listObjects (array $ options = [], callable $ mapFn = null ): \Generator
6262 {
6363 $ options = array_merge ($ options , ['name ' => $ this ->name , 'format ' => 'json ' ]);
64- return $ this ->model (Object ::class)->enumerate ($ this ->api ->getContainer (), $ options , $ mapFn );
64+ return $ this ->model (BaseObject ::class)->enumerate ($ this ->api ->getContainer (), $ options , $ mapFn );
6565 }
6666
6767 /**
@@ -136,17 +136,17 @@ public function getMetadata(): array
136136 }
137137
138138 /**
139- * Retrieves an Object and populates its `name` and `containerName` properties according to the name provided and
139+ * Retrieves an BaseObject and populates its `name` and `containerName` properties according to the name provided and
140140 * the name of this container. A HTTP call will not be executed by default - you need to call
141- * {@see Object ::retrieve} or {@see Object ::download} on the returned Object object to do that.
141+ * {@see BaseObject ::retrieve} or {@see BaseObject ::download} on the returned BaseObject object to do that.
142142 *
143143 * @param string $name The name of the object
144144 *
145- * @return Object
145+ * @return BaseObject
146146 */
147- public function getObject ($ name ): Object
147+ public function getObject ($ name ): BaseObject
148148 {
149- return $ this ->model (Object ::class, ['containerName ' => $ this ->name , 'name ' => $ name ]);
149+ return $ this ->model (BaseObject ::class, ['containerName ' => $ this ->name , 'name ' => $ name ]);
150150 }
151151
152152 /**
@@ -179,13 +179,13 @@ public function objectExists(string $name): bool
179179 *
180180 * @return Object
181181 */
182- public function createObject (array $ data ): Object
182+ public function createObject (array $ data ): BaseObject
183183 {
184- return $ this ->model (Object ::class)->create ($ data + ['containerName ' => $ this ->name ]);
184+ return $ this ->model (BaseObject ::class)->create ($ data + ['containerName ' => $ this ->name ]);
185185 }
186186
187187 /**
188- * Creates a Dynamic Large Object by chunking a file into smaller segments and uploading them into a holding
188+ * Creates a Dynamic Large BaseObject by chunking a file into smaller segments and uploading them into a holding
189189 * container. When this completes, a manifest file is uploaded which references the prefix of the segments,
190190 * allowing concatenation when a request is executed against the manifest.
191191 *
@@ -195,9 +195,9 @@ public function createObject(array $data): Object
195195 * @param string $data['segmentPrefix'] The prefix that will come before each segment. If omitted, a default
196196 * is used: name/timestamp/filesize
197197 *
198- * @return Object
198+ * @return BaseObject
199199 */
200- public function createLargeObject (array $ data ): Object
200+ public function createLargeObject (array $ data ): BaseObject
201201 {
202202 /** @var \Psr\Http\Message\StreamInterface $stream */
203203 $ stream = $ data ['stream ' ];
@@ -218,7 +218,7 @@ public function createLargeObject(array $data): Object
218218 $ count = 0 ;
219219
220220 while (!$ stream ->eof () && $ count < round ($ stream ->getSize () / $ segmentSize )) {
221- $ promises [] = $ this ->model (Object ::class)->createAsync ([
221+ $ promises [] = $ this ->model (BaseObject ::class)->createAsync ([
222222 'name ' => sprintf ("%s/%d " , $ segmentPrefix , ++$ count ),
223223 'stream ' => new LimitStream ($ stream , $ segmentSize , ($ count - 1 ) * $ segmentSize ),
224224 'containerName ' => $ segmentContainer ,
0 commit comments