Check to see if this shell has a callable method by the given name.

@param string $name The method name to check.
@return bool
@link https://book.cakephp.org/3.0/en/console-and-shells.html#shell-tasks
504447
public function hasMethod($name)
    {
        try {
            $method = new ReflectionMethod($this, $name);
            if (!$method->isPublic()) {
                return false;
            }

            return $method->getDeclaringClass()->name !== 'Cake\Console\Shell';
        } catch (ReflectionException $e) {
            return false;
        }
    }
1080947
public static function is_callable( $key )
	{
		if ( is_callable( $key ) )
		{
			return true;
		}

		if ( array_key_exists( $key, static::$_container ) )
		{
			return true;
		}

		return false;
	}
863307
public function __isset($name)
	{
		if (method_exists($this, 'get_' . $name) || isset($this->$name))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
189269
public function has($name): bool
    {
        try {
            $this->container->get($name);

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
285964
public function getCallable($name)
     {
         if (method_exists($this, $name)) {
             return call_user_func([$this, $name]);
         } else {
             throw new InvalidArgumentException('Undefined property: '.get_class($this)."::$name");
         }
     }
50679
public function execute(string $name, ...$arguments): bool
    {

        $method = AssuranceMethod::make($this->object, $name);

        $callable = $method->getCallable();
        $expected = $method->getExpected();

        $response = call_user_func($callable, ...$arguments);

        return $expected === $response;
    }
354338
public function has($name)
    {
        return isset($this->data[$name]) && !in_array($this->data[$name], ['', null, false, array()], true);
    }
536766
public function __isset($name) {
        if(isset($this->tmp[$name])) {
            return true;
        }
        if (method_exists($this, '_' . $name)) {
            return true;
        }
        if (isset($this->row[$name])) { //array_key_exists($name, $this->_row)
            return true;
        }
        if(isset($this->stack[$name])){
            $this->row = &$this->stack;
            return true;
        }
        return false;
    }
972955
public function has($name)
    {
        $context = $this->_context;

        if (!$context->started) {
            $this->_start();
        }

        return isset($context->_SESSION[$name]);
    }
825883
public function has($name)
    {
        foreach ($this->containers as $container) {
            if ($container->has($name)) {
                return true;
            }
        }

        return false;
    }
1271716
public function hasCommand($name = '') {
        if ($name) {
            return array_key_exists($name, $this->commandSchemas);
        } else {
            foreach ($this->commandSchemas as $pattern => $opts) {
                if (strpos($pattern, '*') === false) {
                    return true;
                }
            }
            return false;
        }
    }
642784
public function hasArgument($name) {
        try {
            $argument = $this->getCommand()->findArgument($name);

            return $argument->hasValue();
        } catch (ArgumentNotFoundException $ex) {}

        return false;
    }
244291
public function has(string $name): bool
    {
        return isset($this->stack[$this->normalizeName($name)]);
    }
167097
public function has(string $name): bool
    {
        foreach ($this->elements as $element) {
            if ($element instanceof NamedInterface && $element->getName() == $name) {
                return true;
            }
        }

        return false;
    }
306893
protected function hasQueryBuilderMethod(string $name) : bool
    {
        if (method_exists($this->queryBuilder, $name)) {
            return true;
        }

        if (method_exists($this->queryBuilder, 'hasMacro') && $this->queryBuilder->hasMacro($name)) {
            return true;
        }

        return false;
    }
1050262
public function has($name)
    {
        if (\strpos($name, '.') === false) {
            return parent::has($name);
        }

        try {
            $this->getRecursive($name);
        } catch (\Throwable $exception) {
            return false;
        }

        return true;
    }
1226528
public function has($name)
    {
        if (! isset($this->instances[$name])) {
            return isset($this->registry[$name]);
        }

        return true;
    }