|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / update / app / code / Magento / Update / Queue / |
Filename | /home/a/home/dev2.destoffenstraat.com/update/app/code/Magento/Update/Queue/AbstractJob.php |
Size | 1.55 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 06-Apr-2021 18:06 |
Last accessed | 23-Aug-2025 12:39 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Update\Queue;
use Magento\Update\Status;
use Magento\Update\MaintenanceMode;
/**
* Magento updater application abstract job.
*/
abstract class AbstractJob
{
/**
* @var string
*/
protected $name;
/**
* @var array
*/
protected $params;
/**
* @var Status
*/
protected $status;
/**
* @var MaintenanceMode
*/
protected $maintenanceMode;
/**
* Initialize job instance.
*
* @param string $name
* @param array $params
* @param Status|null $status
* @param MaintenanceMode|null $maintenanceMode
*/
public function __construct($name, array $params, Status $status = null, MaintenanceMode $maintenanceMode = null)
{
$this->name = $name;
$this->params = $params;
$this->status = $status ? $status : new Status();
$this->maintenanceMode = $maintenanceMode ? $maintenanceMode : new MaintenanceMode();
}
/**
* Get job name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Get string representation of a job.
*
* @return string
*/
public function __toString()
{
return $this->name . ' ' . json_encode($this->params, JSON_UNESCAPED_SLASHES );
}
/**
* Execute job.
*
* @return $this
* @throws \RuntimeException
*/
abstract public function execute();
}
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Update\Queue;
use Magento\Update\Status;
use Magento\Update\MaintenanceMode;
/**
* Magento updater application abstract job.
*/
abstract class AbstractJob
{
/**
* @var string
*/
protected $name;
/**
* @var array
*/
protected $params;
/**
* @var Status
*/
protected $status;
/**
* @var MaintenanceMode
*/
protected $maintenanceMode;
/**
* Initialize job instance.
*
* @param string $name
* @param array $params
* @param Status|null $status
* @param MaintenanceMode|null $maintenanceMode
*/
public function __construct($name, array $params, Status $status = null, MaintenanceMode $maintenanceMode = null)
{
$this->name = $name;
$this->params = $params;
$this->status = $status ? $status : new Status();
$this->maintenanceMode = $maintenanceMode ? $maintenanceMode : new MaintenanceMode();
}
/**
* Get job name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Get string representation of a job.
*
* @return string
*/
public function __toString()
{
return $this->name . ' ' . json_encode($this->params, JSON_UNESCAPED_SLASHES );
}
/**
* Execute job.
*
* @return $this
* @throws \RuntimeException
*/
abstract public function execute();
}