Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 18.116.118.0 | Time @ Server : 19 Oct 2024 05:34:42
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/magento/framework/Api/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/Api/AbstractSimpleObject.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Api; /** * Base Class for simple data Objects * @SuppressWarnings(PHPMD.NumberOfChildren) */ abstract class AbstractSimpleObject { /** * @var array */ protected $_data; /** * Initialize internal storage * * @param array $data */ public function __construct(array $data = []) { $this->_data = $data; } /** * Retrieves a value from the data array if set, or null otherwise. * * @param string $key * @return mixed|null */ protected function _get($key) { return $this->_data[$key] ?? null; } /** * Set value for the given key * * @param string $key * @param mixed $value * @return $this */ public function setData($key, $value) { $this->_data[$key] = $value; return $this; } /** * Return Data Object data in array format. * * @return array */ public function __toArray() { $data = $this->_data; $hasToArray = function ($model) { return is_object($model) && method_exists($model, '__toArray') && is_callable([$model, '__toArray']); }; foreach ($data as $key => $value) { if ($hasToArray($value)) { $data[$key] = $value->__toArray(); } elseif (is_array($value)) { foreach ($value as $nestedKey => $nestedValue) { if ($hasToArray($nestedValue)) { $value[$nestedKey] = $nestedValue->__toArray(); } } $data[$key] = $value; } } return $data; } }