Skip to content

Commit

Permalink
Create a command object for processing files copied into the auto_sca…
Browse files Browse the repository at this point in the history
…n directory.
  • Loading branch information
garethlawson committed Jul 16, 2017
1 parent 74b8065 commit 6442c78
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions app/Commands/AutoScanForNewFiles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace App\Commands;

class AutoScanForNewFiles extends Command
{
/** @var bool */
protected $autoScan;

/**
* AutoScanForNewFIles constructor.
*
* @param bool $autoScan
*/
public function __construct(bool $autoScan = false)
{
$this->autoScan = $autoScan;
}

/**
* @return bool
*/
public function isAutoScan(): bool
{
return $this->autoScan;
}
}

0 comments on commit 6442c78

Please sign in to comment.