private function populatePaths($paths)
    {
        if (!is_array($paths)) {
            $paths = array($paths);
        }

        foreach ($paths as $path) {
            if ($path[0] !== "/" && $path[0] !== "*") {
                throw new InvalidArgumentException("Invalid handler path specified");
            }

            $this->handlerPaths[] = $path;
        }
    }
private function populatePaths($paths)
    {
        if (!is_array($paths)) {
            $paths = array($paths);
        }

        foreach ($paths as $path) {
            if ($path[0] !== "/" && $path[0] !== "*") {
                throw new InvalidArgumentException("Invalid handler path specified");
            }

            $this->handlerPaths[] = $path;
        }
    }
private function populatePaths ( $ paths ) { if ( ! is_array ( $ paths ) ) { $ paths = array ( $ paths ) ; } foreach ( $ paths as $ path ) { if ( $ path [ 0 ] !== "/" && $ path [ 0 ] !== "*" ) { throw new InvalidArgumentException ( "Invalid handler path specified" ) ; } $ this -> handlerPaths [ ] = $ path ; } }
Verifies & adds paths handled by this handler
It's private due to fact that for performance reasons CherryHttp will cache paths for each handler

@param string|string[] $paths One (or more) paths to be handled

@throws InvalidArgumentException Raised if any of paths is invalid
Verifies & adds paths handled by this handler It s private due to fact that for performance reasons CherryHttp will cache paths for each handler