Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class OnlyLastOnes extends PruningTemplatesTemplate |
||
8 | { |
||
9 | private $keepCount = 3; |
||
10 | |||
11 | public function getTitle(): string |
||
12 | { |
||
13 | return 'Prune all the last few'; |
||
14 | } |
||
15 | |||
16 | public function getDescription(): string |
||
17 | { |
||
18 | return 'Keep ' . $this->keepCount . ' records and delete all other.'; |
||
19 | } |
||
20 | |||
21 | public function setkeepCount(int $keepCount): self |
||
26 | } |
||
27 | |||
28 | public function run(?bool $verbose = false) |
||
44 | ); |
||
45 | } |
||
46 | } |
||
48 |