Collector
Collects tokens
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct()Create a new Collector. |
Instance Methods
| Returns | Signature and Description |
|---|---|
ConstVector<ScannedBase> | collect(, )Collect all tokens |
| Returns | Signature and Description |
|---|---|
ConstVector<ScannedBase> | parsePath(, ) |
Method Details
__construct
public function
__construct(LoggerInterface $logger)Create a new Collector.
| Name | Type | Description |
|---|---|---|
$logger | LoggerInterface | The logger |
collect
public function
collect(ConstVector<string> $arguments, ConstSet<string> $excludes)Collect all tokens
| Name | Type | Description |
|---|---|---|
$arguments | ConstVector<string> | The list of files and directories to scan |
$excludes | ConstSet<string> | The list of files and directories to exclude |
| Type | Description |
|---|---|
ConstVector<ScannedBase> | All tokens found |
parsePath
protected function
parsePath(string $argument, LoggerInterface $log)| Name | Type | Description |
|---|---|---|
$argument | string | |
$log | LoggerInterface |
| Type | Description |
|---|---|
ConstVector<ScannedBase> |