2828use function Amp \call ;
2929
3030/**
31- * Imports data from a provider defined in the providers container or internal factory.
31+ * Imports data from a provider defined in the container of providers or the internal factory.
3232 */
3333class Porter
3434{
@@ -53,11 +53,12 @@ public function __construct(ContainerInterface $providers)
5353 }
5454
5555 /**
56- * Imports data according to the design of the specified import specification.
56+ * Imports a one or more records from the resource contained in the specified import specification.
5757 *
5858 * @param ImportSpecification $specification Import specification.
5959 *
60- * @return PorterRecords|CountablePorterRecords
60+ * @return PorterRecords|CountablePorterRecords Collection of records. If the total size of the collection is known,
61+ * the collection may implement Countable, otherwise PorterRecords is returned.
6162 */
6263 public function import (ImportSpecification $ specification ): PorterRecords
6364 {
@@ -75,7 +76,7 @@ public function import(ImportSpecification $specification): PorterRecords
7576 }
7677
7778 /**
78- * Imports one record according to the design of the specified import specification.
79+ * Imports one record from the resource contained in the specified import specification.
7980 *
8081 * @param ImportSpecification $specification Import specification.
8182 *
@@ -122,11 +123,13 @@ private function fetch(ImportSpecification $specification): \Iterator
122123 }
123124
124125 /**
125- * Imports data asynchronously according to the design of the specified asynchronous import specification.
126+ * Imports one or more records asynchronously from the resource contained in the specified asynchronous import
127+ * specification.
126128 *
127129 * @param AsyncImportSpecification $specification Asynchronous import specification.
128130 *
129- * @return AsyncPorterRecords|CountableAsyncPorterRecords
131+ * @return AsyncPorterRecords|CountableAsyncPorterRecords Collection of records. If the total size of the
132+ * collection is known, the collection may implement Countable, otherwise AsyncPorterRecords is returned.
130133 */
131134 public function importAsync (AsyncImportSpecification $ specification ): AsyncRecordCollection
132135 {
@@ -148,11 +151,11 @@ public function importAsync(AsyncImportSpecification $specification): AsyncRecor
148151 }
149152
150153 /**
151- * Imports one record according to the design of the specified asynchronous import specification.
154+ * Imports one record from the resource contained in the specified asynchronous import specification.
152155 *
153156 * @param AsyncImportSpecification $specification Asynchronous import specification.
154157 *
155- * @return Promise Promise that resolves to a record .
158+ * @return Promise<array|null> Record .
156159 */
157160 public function importOneAsync (AsyncImportSpecification $ specification ): Promise
158161 {
@@ -265,7 +268,7 @@ private function createAsyncPorterRecords(
265268 *
266269 * @param string $name Provider name.
267270 *
268- * @return Provider|AsyncProvider
271+ * @return Provider|AsyncProvider Provider.
269272 *
270273 * @throws ProviderNotFoundException The specified provider was not found.
271274 */
0 commit comments