Skip to content

Commit a7c4829

Browse files
Make static
1 parent a8db663 commit a7c4829

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/AbstractSpreadsheet.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,35 +115,35 @@ public function getResult(string $file, array $fields): Result
115115
return $result;
116116
}
117117

118-
public function setCallback(callable $callback): self
118+
public function setCallback(callable $callback): static
119119
{
120120
$this->callback = $callback;
121121

122122
return $this;
123123
}
124124

125-
public function setFilter(callable $filter): self
125+
public function setFilter(callable $filter): static
126126
{
127127
$this->filter = $filter;
128128

129129
return $this;
130130
}
131131

132-
public function setEof(callable $eof): self
132+
public function setEof(callable $eof): static
133133
{
134134
$this->eof = $eof;
135135

136136
return $this;
137137
}
138138

139-
public function setHeader(?int $header): self
139+
public function setHeader(?int $header): static
140140
{
141141
$this->header = $header;
142142

143143
return $this;
144144
}
145145

146-
public function setCheck(bool $check): self
146+
public function setCheck(bool $check): static
147147
{
148148
$this->check = $check;
149149

src/Csv.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ class Csv extends AbstractSpreadsheet implements CsvInterface
1717
private bool $gzip = false;
1818
private ?SplFileObject $splFileObject = null;
1919

20-
public function setDelimiter(string $delimiter): self
20+
public function setDelimiter(string $delimiter): static
2121
{
2222
$this->delimiter = $delimiter;
2323

2424
return $this;
2525
}
2626

27-
public function setEnclosure(string $enclosure): self
27+
public function setEnclosure(string $enclosure): static
2828
{
2929
$this->enclosure = $enclosure;
3030

3131
return $this;
3232
}
3333

34-
public function setEscape(string $escape): self
34+
public function setEscape(string $escape): static
3535
{
3636
$this->escape = $escape;
3737

3838
return $this;
3939
}
4040

41-
public function setGzip(bool $gzip): self
41+
public function setGzip(bool $gzip): static
4242
{
4343
$this->gzip = $gzip;
4444

src/CsvInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ interface CsvInterface extends SpreadsheetInterface
99
/**
1010
* Set the row delimiter.
1111
*/
12-
public function setDelimiter(string $delimiter): self;
12+
public function setDelimiter(string $delimiter): static;
1313

1414
/**
1515
* Set the row enclosure.
1616
*/
17-
public function setEnclosure(string $enclosure): self;
17+
public function setEnclosure(string $enclosure): static;
1818

1919
/**
2020
* Set the row escape.
2121
*/
22-
public function setEscape(string $escape): self;
22+
public function setEscape(string $escape): static;
2323

2424
/**
2525
* Set if the file is encrypted with gzip.
2626
*/
27-
public function setGzip(bool $gzip): self;
27+
public function setGzip(bool $gzip): static;
2828
}

src/SpreadsheetInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ interface SpreadsheetInterface
1919
*/
2020
public function getResult(string $file, array $fields): Result;
2121

22-
public function setCallback(callable $callback): self;
22+
public function setCallback(callable $callback): static;
2323

24-
public function setFilter(callable $filter): self;
24+
public function setFilter(callable $filter): static;
2525

26-
public function setHeader(?int $header): self;
26+
public function setHeader(?int $header): static;
2727

28-
public function setEof(callable $eof): self;
28+
public function setEof(callable $eof): static;
2929

30-
public function setCheck(bool $check): self;
30+
public function setCheck(bool $check): static;
3131
}

0 commit comments

Comments
 (0)