File "BackupCommand.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/BackupCommand.php
File size: 553 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Intervention\Image\Imagick\Commands;
use Intervention\Image\Commands\AbstractCommand;
class BackupCommand extends AbstractCommand
{
/**
* Saves a backups of current state of image core
*
* @param \Intervention\Image\Image $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;
}
}