/** * @param modX $modx * @param array $properties */ function __construct(modX &$modx, array $properties = array()) { $processor = null; if (!empty($properties['processor'])) { $processor = $properties['processor']; /** @var modResourceUpdateProcessor $processor */ $processor->initialize(); unset($properties['processor']); } parent::__construct($modx, $properties); $this->_processor = $processor; }