Файл: system/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/BackupCommand.php
Строк: 29
<?php
namespace InterventionImageImagickCommands;
use InterventionImageCommandsAbstractCommand;
class BackupCommand extends AbstractCommand
{
/**
* Saves a backups of current state of image core
*
* @param InterventionImageImage $image
* @return boolean
*/
public function execute($image)
{
$backupName = $this->argument(0)->value();
// clone current image resource
$clone = clone $image;
$image->setBackup($clone->getCore(), $backupName);
return true;
}
}