src/Image/Image.php
public function setBackup($resource, $name = null)
    {
        $name = $name ?? 'default';

        $this->backups[$name] = $resource;

        return $this;
    }
public function setBackup($resource, $name = null)
    {
        $name = $name ?? 'default';

        $this->backups[$name] = $resource;

        return $this;
    }
public function setBackup ( $ resource , $ name = null ) { $ name = $ name ?? 'default' ; $ this -> backups [ $ name ] = $ resource ; return $ this ; }
Sets current image backup

@param mixed  $resource
@param string $name

@return self
Sets current image backup