Making sources
It can be possible that you need to create your own source because what you need is not provided by Phecks.
Lucily, it's very easy to make them.
If you follow the recommended setup, you can allocate your Sources in ./phecks/Sources
.
New Source
To make a source, make sure to implement the Source interface:
It will make you implement the run
method.
Also, you'll have to define the type of items this Source will return. You do that by using @implements Source<YourMatchType>
You can use MatchCollection@fromFiles
if you know you will feed an array of FileMatch
.
Last updated