| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Drafts extends PruningTemplatesTemplate |
||
| 8 | { |
||
| 9 | private $keepDraftCount = 10; |
||
| 10 | |||
| 11 | public function getTitle(): string |
||
| 12 | { |
||
| 13 | return 'Prune drafts'; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getDescription(): string |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * here for legacy reasons. |
||
| 23 | */ |
||
| 24 | public function setkeepDrafts(int $keepDraftCount): self |
||
| 25 | { |
||
| 26 | $this->keepDraftCount = $keepDraftCount; |
||
| 27 | |||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setkeepDraftCount(int $keepDraftCount): self |
||
| 36 | } |
||
| 37 | |||
| 38 | public function run(?bool $verbose = false) |
||
| 59 |