Server IP : 172.67.158.161 / Your IP : 18.224.67.58 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/wp-content/plugins/duplicator-pro/aws/Guzzle/Service/Resource/ |
Upload File : |
<?php namespace DuplicatorPro\Guzzle\Service\Resource; defined("ABSPATH") or die(""); use DuplicatorPro\Guzzle\Service\Command\CommandInterface; /** * Resource iterator factory used when explicitly mapping strings to iterator classes */ class MapResourceIteratorFactory extends AbstractResourceIteratorFactory { /** @var array Associative array mapping iterator names to class names */ protected $map; /** @param array $map Associative array mapping iterator names to class names */ public function __construct(array $map) { $this->map = $map; } public function getClassName(CommandInterface $command) { $className = $command->getName(); if (isset($this->map[$className])) { return $this->map[$className]; } elseif (isset($this->map['*'])) { // If a wildcard was added, then always use that return $this->map['*']; } return null; } }