for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverLeague\Console\Command\Dev\Tasks;
use SilverLeague\Console\Command\SilverStripeCommand;
use SilverStripe\Dev\BuildTask;
/**
* Not an actual abstract class, but used by the Command Factory to create Commands from BuildTasks
*
* @package silverstripe-console
* @author Robbie Averill <[email protected]>
*/
class AbstractTaskCommand extends SilverStripeCommand
{
* Contains the SilverStripe BuildTask used for this command, if imported from SilverStripe
* @var BuildTask
protected $buildTask;
* Get the original SilverStrpe BuildTask used
* @return BuildTask
public function getTask()
return $this->buildTask;
}
* Set the original SilverStripe BuildTask used
* @param BuildTask $task
* @return $this
public function setTask(BuildTask $task)
$this->buildTask = $task;
return $this;