modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-06-13 04:19:21 +04:00
parent 99e074cd85
commit acb643d4dc
2 changed files with 9 additions and 4 deletions

View File

@ -19,7 +19,7 @@ use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
class SsBuilder extends AbstractBuilder { class SsBuilder extends AbstractBuilder {
use TAbstractBuilder; use TAbstractBuilder;
/** @var ?string nom de la feuille dans laquelle écrire */ /** @var string|int|null nom de la feuille dans laquelle écrire */
const WSNAME = null; const WSNAME = null;
function __construct(?string $output, ?array $params=null) { function __construct(?string $output, ?array $params=null) {
@ -41,7 +41,10 @@ class SsBuilder extends AbstractBuilder {
protected int $rowStyle; protected int $rowStyle;
function setWsname(?string $wsname): self { /**
* @param string|int|null $wsname
*/
function setWsname($wsname): self {
$ss = $this->ss; $ss = $this->ss;
$this->ws = null; $this->ws = null;
$this->nrow = 0; $this->nrow = 0;

View File

@ -51,7 +51,7 @@ class SsReader extends AbstractReader {
'mm:ss' => self::TIME_FORMAT, 'mm:ss' => self::TIME_FORMAT,
]; ];
/** @var ?string nom de la feuille depuis laquelle lire */ /** @var string|int|null nom de la feuille depuis laquelle lire */
const WSNAME = null; const WSNAME = null;
function __construct($input, ?array $params=null) { function __construct($input, ?array $params=null) {
@ -59,9 +59,11 @@ class SsReader extends AbstractReader {
$this->wsname = $params["wsname"] ?? static::WSNAME; $this->wsname = $params["wsname"] ?? static::WSNAME;
} }
/** @var string|int|null */
protected $wsname; protected $wsname;
/**
* @param string|int|null $wsname
*/
function setWsname($wsname): self { function setWsname($wsname): self {
$this->wsname = $wsname; $this->wsname = $wsname;
return $this; return $this;