-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
/** | ||
* Autoload Object. | ||
* | ||
* | ||
* A autoload or autoload-dev object. | ||
* | ||
* @author Basil Suter <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,26 +7,26 @@ | |
|
||
/** | ||
* Data Iterator. | ||
* | ||
* | ||
* This class mainly helps to generate the itrator for a given section. The `loadData()` method must be run in | ||
* order to retrieve data. | ||
* | ||
* | ||
* ```php | ||
* public function createIteratorItem() | ||
* { | ||
* return new Package($this->reader, $this->key(), current($this->data)); | ||
* } | ||
* ``` | ||
* | ||
* | ||
* ```php | ||
* public function assignIteratorData() | ||
* { | ||
* return $this->reader->contentSection('require', []); | ||
* } | ||
* ``` | ||
* | ||
* | ||
* run `loadData()` in constructor. | ||
* | ||
* | ||
* @author Basil Suter <[email protected]> | ||
* @since 1.1.0 | ||
*/ | ||
|
@@ -36,7 +36,7 @@ abstract class DataIterator implements Iterator, Countable | |
|
||
/** | ||
* Assign the data. | ||
* | ||
* | ||
* Returns an array with data which should be assigned to the iterator. | ||
* | ||
* @return array | ||
|
@@ -57,8 +57,8 @@ abstract public function createIteratorItem(); | |
*/ | ||
public function loadData() | ||
{ | ||
$this->data = $this->assignIteratorData(); | ||
} | ||
$this->data = $this->assignIteratorData(); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
|
@@ -107,4 +107,4 @@ public function count() | |
{ | ||
return count($this->data); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,11 @@ | |
use Composer\Semver\VersionParser; | ||
use Composer\Semver\Comparator; | ||
|
||
|
||
/** | ||
* Package Object. | ||
* | ||
* Package details which used for require and require-dev sections. | ||
* | ||
* | ||
* @author Basil Suter <[email protected]> | ||
* @since 1.0.0 | ||
*/ | ||
|