/
UrlInterface.zep
50 lines (42 loc) · 1.15 KB
/
UrlInterface.zep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Mvc\Url;
/**
* Interface for Phalcon\Mvc\Url\UrlInterface
*/
interface UrlInterface
{
/**
* Generates a URL
*
* @param string|array uri
* @param array|object args Optional arguments to be appended to the query string
*/
public function get(uri = null, args = null, bool local = null) -> string;
/**
* Returns a base path
*/
public function getBasePath() -> string;
/**
* Returns the prefix for all the generated urls. By default /
*/
public function getBaseUri() -> string;
/**
* Sets a base paths for all the generated paths
*/
public function setBasePath(string! basePath) -> <UrlInterface>;
/**
* Sets a prefix to all the urls generated
*/
public function setBaseUri(string! baseUri) -> <UrlInterface>;
/**
* Generates a local path
*/
public function path(string path = null) -> string;
}