Files
popsu-d9/old.vendor/consolidation/robo/src/Task/Logfile/Tasks.php
2022-04-27 11:30:43 +02:00

29 lines
650 B
PHP

<?php
namespace Robo\Task\Logfile;
use Robo\Collection\CollectionBuilder;
trait Tasks
{
/**
* @param string|string[] $logfile
*
* @return \Robo\Task\Logfile\RotateLog|\Robo\Collection\CollectionBuilder
*/
protected function taskRotateLog($logfile): CollectionBuilder
{
return $this->task(RotateLog::class, $logfile);
}
/**
* @param string|string[] $logfile
*
* @return \Robo\Task\Logfile\TruncateLog|\Robo\Collection\CollectionBuilder
*/
protected function taskTruncateLog($logfile): CollectionBuilder
{
return $this->task(TruncateLog::class, $logfile);
}
}