| 1 | <?php |
||
| 33 | trait RotationTrait { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | * @since 14.0.0 |
||
| 38 | */ |
||
| 39 | protected $filePath; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var int |
||
| 43 | * @since 14.0.0 |
||
| 44 | */ |
||
| 45 | protected $maxSize; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string the resulting new filepath |
||
| 49 | * @since 14.0.0 |
||
| 50 | */ |
||
| 51 | protected function rotate():string { |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return bool |
||
| 59 | * @since 14.0.0 |
||
| 60 | */ |
||
| 61 | protected function shouldRotateBySize():bool { |
||
| 70 | |||
| 71 | } |
||
| 72 |