PHP Class Phprest\Service\Hateoas\Config

Inheritance: implements Phprest\Service\Configurable
显示文件 Open project: phprest/phprest Class Usage Examples

Public Properties

Property Type Description
$cacheDir string
$debug boolean
$metadataDir string
$urlGenerator callable

Public Methods

Method Description
__construct ( boolean $debug = false, string | null $cacheDir = null, string | null $metadataDir = null, callable | null $urlGenerator = null )
getServiceName ( ) : string

Protected Methods

Method Description
generateUrl ( string $route, array $parameters, boolean $absolute ) : string

Method Details

__construct() public method

public __construct ( boolean $debug = false, string | null $cacheDir = null, string | null $metadataDir = null, callable | null $urlGenerator = null )
$debug boolean
$cacheDir string | null
$metadataDir string | null
$urlGenerator callable | null

generateUrl() protected method

protected generateUrl ( string $route, array $parameters, boolean $absolute ) : string
$route string
$parameters array
$absolute boolean
return string

getServiceName() public static method

public static getServiceName ( ) : string
return string

Property Details

$cacheDir public_oe property

public string $cacheDir
return string

$debug public_oe property

public bool $debug
return boolean

$metadataDir public_oe property

public string $metadataDir
return string

$urlGenerator public_oe property

public callable $urlGenerator
return callable