Skip to content

Commit faa8ff8

Browse files
committed
Make method and resource getters public
1 parent f719383 commit faa8ff8

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/Request/Request.php

+20-20
Original file line numberDiff line numberDiff line change
@@ -70,47 +70,47 @@ protected function browserKit()
7070
}
7171

7272
/**
73-
* Method getter
73+
* Attach builder properties on execution
7474
*
75-
* @return string
75+
* @param HttpClient $client
7676
*/
77-
protected function getMethod()
77+
protected function defaultAttach(HttpClient $client)
7878
{
79-
if($this->browserKit()) {
80-
return strtoupper($this->method);
81-
}
82-
83-
return strtolower($this->method);
79+
//
8480
}
8581

8682
/**
87-
* Resource getter
83+
* Request tests
8884
*
89-
* @return string
85+
* @return array
9086
*/
91-
protected function getResource()
87+
protected function tests()
9288
{
93-
return $this->resource;
89+
return [];
9490
}
9591

9692
/**
97-
* Attach builder properties on execution
93+
* Method getter
9894
*
99-
* @param HttpClient $client
95+
* @return string
10096
*/
101-
protected function defaultAttach(HttpClient $client)
97+
public function getMethod()
10298
{
103-
//
99+
if($this->browserKit()) {
100+
return strtoupper($this->method);
101+
}
102+
103+
return strtolower($this->method);
104104
}
105105

106106
/**
107-
* Request tests
107+
* Resource getter
108108
*
109-
* @return array
109+
* @return string
110110
*/
111-
protected function tests()
111+
public function getResource()
112112
{
113-
return [];
113+
return $this->resource;
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)