Skip to content

Commit 2974e9d

Browse files
committed
Change base steps
1 parent f5d4c82 commit 2974e9d

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/Extractors/Extractor.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
namespace Marquine\Etl\Extractors;
44

5-
use IteratorAggregate;
65
use Marquine\Etl\Step;
76

8-
abstract class Extractor extends Step implements IteratorAggregate
7+
abstract class Extractor extends Step
98
{
109
/**
11-
* Set up the extraction from the given source.
10+
* Extract data from an input.
1211
*
13-
* @param mixed $source
14-
* @return void
12+
* @return \Generator
1513
*/
16-
abstract public function extract($source);
14+
abstract public function extract();
1715
};

src/Loaders/Loader.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
abstract class Loader extends Step
88
{
99
/**
10-
* Get the loader handler.
10+
* Load the given row.
1111
*
12-
* @param mixed $destination
13-
* @return callable
12+
* @param \Marquine\Etl\Row $row
13+
* @return void
1414
*/
15-
abstract public function load($destination);
15+
abstract public function load($row);
1616
}

src/Transformers/Transformer.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
abstract class Transformer extends Step
88
{
99
/**
10-
* Get the transformer handler.
10+
* Transform the given row.
1111
*
12-
* @return callable
12+
* @param \Marquine\Etl\Row $row
13+
* @return void
1314
*/
14-
abstract public function transform();
15+
abstract public function transform($row);
1516
}

0 commit comments

Comments
 (0)