PHP Class Visithor\Model\Url

Show file Open project: visithor/visithor Class Usage Examples

Protected Properties

Property Type Description
$acceptableHTTPCodes string[] Set of Acceptable HTTP Codes
$options array Options
$path string Url path

Public Methods

Method Description
__construct ( string $path, array $acceptableHTTPCodes, array $options ) Construct
getAcceptableHttpCodes ( ) : string[] Get Acceptable HttpCodes
getOption ( string $option, mixed $default = null ) : mixed Get Options
getOptions ( ) : array Get Options
getPath ( ) : string Get Path

Method Details

__construct() public method

Construct
public __construct ( string $path, array $acceptableHTTPCodes, array $options )
$path string Path
$acceptableHTTPCodes array Acceptable Http codes
$options array Options

getAcceptableHttpCodes() public method

Get Acceptable HttpCodes
public getAcceptableHttpCodes ( ) : string[]
return string[] HttpCodes

getOption() public method

Get Options
public getOption ( string $option, mixed $default = null ) : mixed
$option string Option name
$default mixed Default value
return mixed Option value

getOptions() public method

Get Options
public getOptions ( ) : array
return array Options

getPath() public method

Get Path
public getPath ( ) : string
return string Path

Property Details

$acceptableHTTPCodes protected property

Set of Acceptable HTTP Codes
protected string[] $acceptableHTTPCodes
return string[]

$options protected property

Options
protected array $options
return array

$path protected property

Url path
protected string $path
return string