PHP Class Phprest\Annotation\Route

Show file Open project: phprest/phprest

Public Properties

Property Type Description
$method string
$path string
$version null | string

Public Methods

Method Description
__construct ( mixed $options )

Protected Methods

Method Description
getSinceRegExp ( string $version ) : string
getSinceUntilRegExp ( string $sinceVersion, string $untilVersion ) : string
getUntilRegExp ( string $version ) : string
validate ( array $options ) : void

Method Details

__construct() public method

public __construct ( mixed $options )
$options mixed

getSinceRegExp() protected method

protected getSinceRegExp ( string $version ) : string
$version string
return string

getSinceUntilRegExp() protected method

protected getSinceUntilRegExp ( string $sinceVersion, string $untilVersion ) : string
$sinceVersion string
$untilVersion string
return string

getUntilRegExp() protected method

protected getUntilRegExp ( string $version ) : string
$version string
return string

validate() protected method

protected validate ( array $options ) : void
$options array
return void

Property Details

$method public property

public string $method
return string

$path public property

public string $path
return string

$version public property

public null|string $version
return null | string