Psr7Middlewares\Utils\BasePathTrait::basePath PHP Метод

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

Set the basepath used in the request.
public basePath ( string $basePath ) : self
$basePath string
Результат self
    public function basePath($basePath)
    {
        if (strlen($basePath) > 1 && substr($basePath, -1) === '/') {
            $this->basePath = substr($basePath, 0, -1);
        } else {
            $this->basePath = $basePath;
        }
        return $this;
    }
BasePathTrait