Inspekt\AccessorAbstract::run PHP Метод

run() публичный Метод

This executes the accessor on the key, either passed as the only argument, or the first value in $this->args;
Автор: Ed Finkler
public run ( string $key = null ) : mixed
$key string
Результат mixed
    public function run($key = null)
    {
        if (!isset($key)) {
            $key = $this->args[0];
        }
        if (!$this->cage->keyExists($key)) {
            return false;
        }
        $val = $this->getValue($key);
        if (Inspekt::isArrayOrArrayObject($val)) {
            return $this->walkArray($val);
        } else {
            return $this->inspekt($val);
        }
    }