public function toArray(): array
    {
        return [
            'name'      => $this->name,
            'path'      => $this->path,
            'method'    => $this->method,
            'handler'   => $this->handler,
            'binds'     => $this->bindVars,
            'params'    => $this->params,
            'options'   => $this->options,
            //
            'pathVars'  => $this->pathVars,
            'pathStart' => $this->pathStart,
            'pathRegex' => $this->pathRegex,
            //
            'chains'    => $this->chains,
        ];
    }
public function toArray(): array
    {
        return [
            'name'      => $this->name,
            'path'      => $this->path,
            'method'    => $this->method,
            'handler'   => $this->handler,
            'binds'     => $this->bindVars,
            'params'    => $this->params,
            'options'   => $this->options,
            //
            'pathVars'  => $this->pathVars,
            'pathStart' => $this->pathStart,
            'pathRegex' => $this->pathRegex,
            //
            'chains'    => $this->chains,
        ];
    }
public function toArray ( ) : array { return [ 'name' => $ this -> name , 'path' => $ this -> path , 'method' => $ this -> method , 'handler' => $ this -> handler , 'binds' => $ this -> bindVars , 'params' => $ this -> params , 'options' => $ this -> options , // 'pathVars' => $ this -> pathVars , 'pathStart' => $ this -> pathStart , 'pathRegex' => $ this -> pathRegex , // 'chains' => $ this -> chains , ] ; }
get all info data
@return array
get all info data