BearFramework\App\Request\Path

Provides information about the request path.
BearFramework\App\Request\Path {

    
/* Methods */
    
public __construct ( [ string $path '' ] )
    public 
string get void )
    public 
string|null getSegment int $index )
    public 
bool match string|string[] $pattern )
    public 
self set string $path )

}
Methods
public __construct ( [ string $path = '' ] )
public string get ( void )
Returns the full path.
public string|null getSegment ( int $index )
Returns the value of the path segment for the index specified or null if not found.
public bool match ( string|string[] $pattern )
Checks if the current path matches the pattern/patterns specified.
public self set ( string $path )
Sets a new path.
Details
Location: ~/src/App/Request/Path.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.