Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 2d6c9fd

Browse files
authored
Add conventions around PHP code in the project (#68)
* Add convention tests over packages definitions * Add conventions around classes docblocks * Add conventions around public method docblocks
1 parent 9cb4e4d commit 2d6c9fd

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/Reader/HeaderStrategy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public function setHeaders(array $headers): bool
7575
}
7676

7777
/**
78+
* Build the associative item, a combination of headers and values.
79+
*
7880
* @throws InvalidRowSizeException
7981
*
8082
* @phpstan-param array<int, string> $row

src/Reader/Options/SheetFilter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public static function nameIs(string $name, string ...$names): self
5555
}
5656

5757
/**
58+
* Iterate over valid sheets for the provided filter.
59+
*
5860
* @return Generator&SheetInterface[]
5961
* @phpstan-return Generator<SheetInterface>
6062
* @internal

src/Writer/WriteToSheetItem.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ private function __construct(
2121
}
2222

2323
/**
24+
* Static constructor from array data.
25+
*
2426
* @param array<int|string, mixed> $item
2527
*/
2628
public static function array(string $sheet, array $item, Style $style = null): self
2729
{
2830
return new self($sheet, WriterEntityFactory::createRowFromArray($item, $style));
2931
}
3032

33+
/**
34+
* Static constructor from {@see Row} object.
35+
*/
3136
public static function row(string $sheet, Row $item): self
3237
{
3338
return new self($sheet, $item);

0 commit comments

Comments
 (0)