Skip to content

Commit 6a3902c

Browse files
committed
📦 Better typing. Add mention about keys
1 parent ae6fdc7 commit 6a3902c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Name/Generator/CommandNameGenerator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@
99

1010
class CommandNameGenerator implements NameGeneratorInterface, EventSubscriberInterface
1111
{
12+
/**
13+
* @var NameGeneratorInterface[] Key - regexp, value - name generator
14+
*/
1215
private array $generators;
1316

1417
private string $name = '';
1518

19+
/**
20+
* @param NameGeneratorInterface[] $generators Key - regexp, value - name generator
21+
*/
1622
public function __construct(array $generators = [])
1723
{
1824
$this->generators = $generators;

0 commit comments

Comments
 (0)