| 1 | <?php |
||
| 6 | class ShellModelTruncator { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * The shell or shel task object for interacting with the console |
||
| 10 | * |
||
| 11 | * @var null|Shell |
||
| 12 | */ |
||
| 13 | protected $_shell = null; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * ModelTruncator constructor |
||
| 17 | * |
||
| 18 | * @param Shell $shell A shell or shell task object. |
||
| 19 | */ |
||
| 20 | public function __construct($shell) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Truncate the given models |
||
| 26 | * |
||
| 27 | * @param array $modelsToTruncate An array of models (names) to truncate |
||
| 28 | * @return void |
||
| 29 | * @todo Improve testability by extracting the model object retrieval part. |
||
| 30 | */ |
||
| 31 | public function truncateModels($modelsToTruncate) { |
||
| 39 | } |