!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/mollie/mollie-api-php/src/Resources/   drwxr-xr-x
Free 28.8 GB of 117.98 GB (24.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CursorCollection.php (3.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Mollie\Api\Resources;

use 
Generator;
use 
Mollie\Api\MollieApiClient;

abstract class 
CursorCollection extends BaseCollection
{
    
/**
     * @var MollieApiClient
     */
    
protected $client;

    
/**
     * @param MollieApiClient $client
     * @param int $count
     * @param \stdClass|null $_links
     */
    
final public function __construct(MollieApiClient $client$count$_links)
    {
        
parent::__construct($count$_links);

        
$this->client $client;
    }

    
/**
     * @return BaseResource
     */
    
abstract protected function createResourceObject();

    
/**
     * Return the next set of resources when available
     *
     * @return CursorCollection|null
     * @throws \Mollie\Api\Exceptions\ApiException
     */
    
final public function next()
    {
        if (! 
$this->hasNext()) {
            return 
null;
        }

        
$result $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET$this->_links->next->href);

        
$collection = new static($this->client$result->count$result->_links);

        foreach (
$result->_embedded->{$collection->getCollectionResourceName()} as $dataResult) {
            
$collection[] = ResourceFactory::createFromApiResult($dataResult$this->createResourceObject());
        }

        return 
$collection;
    }

    
/**
     * Return the previous set of resources when available
     *
     * @return CursorCollection|null
     * @throws \Mollie\Api\Exceptions\ApiException
     */
    
final public function previous()
    {
        if (! 
$this->hasPrevious()) {
            return 
null;
        }

        
$result $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET$this->_links->previous->href);

        
$collection = new static($this->client$result->count$result->_links);

        foreach (
$result->_embedded->{$collection->getCollectionResourceName()} as $dataResult) {
            
$collection[] = ResourceFactory::createFromApiResult($dataResult$this->createResourceObject());
        }

        return 
$collection;
    }

    
/**
     * Determine whether the collection has a next page available.
     *
     * @return bool
     */
    
public function hasNext()
    {
        return isset(
$this->_links->next->href);
    }

    
/**
     * Determine whether the collection has a previous page available.
     *
     * @return bool
     */
    
public function hasPrevious()
    {
        return isset(
$this->_links->previous->href);
    }

    
/**
     * Iterate over a CursorCollection and yield its elements.
     *
     * @param bool $iterateBackwards
     *
     * @return LazyCollection
     */
    
public function getAutoIterator(bool $iterateBackwards false): LazyCollection
    
{
        
$page $this;

        return new 
LazyCollection(function () use ($page$iterateBackwards): Generator {
            while (
true) {
                foreach (
$page as $item) {
                    yield 
$item;
                }

                if ((
$iterateBackwards && ! $page->hasPrevious()) || ! $page->hasNext()) {
                    break;
                }

                
$page $iterateBackwards
                    
$page->previous()
                    : 
$page->next();
            }
        });
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--