It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
16
{
17
11
$this->_driver = $driver ?: new Driver_Simple;
18
19
if ($extension)
20
11
{
21
1
$this->_extension = $extension;
22
1
}
23
11
}
24
25
/**
26
* Initiate a visit with the currently selected driver
27
* @param string $uri
28
* @param array $query
29
* @return $this
30
*/
31
1
public function visit($uri, array $query = array())
32
{
33
1
$this->driver()->visit($uri, $query);
34
35
1
return $this;
36
}
37
38
/**
39
* Return the content of the last request from the currently selected driver
40
* @return string
41
*/
42
1
public function content()
43
{
44
1
return $this->driver()->content();
45
}
46
47
/**
48
* Return the current browser url without the domain
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.