1 | <?php |
||||
2 | |||||
3 | namespace AlibabaCloud\Client\Request\Traits; |
||||
4 | |||||
5 | /** |
||||
6 | * @package AlibabaCloud\Client\Request\Traits |
||||
7 | * @codeCoverageIgnore |
||||
8 | */ |
||||
9 | trait DeprecatedRoaTrait |
||||
10 | { |
||||
11 | /** |
||||
12 | * @param $name |
||||
13 | * @param $value |
||||
14 | * |
||||
15 | * @return $this |
||||
16 | * @deprecated |
||||
17 | * @codeCoverageIgnore |
||||
18 | */ |
||||
19 | public function putPathParameter($name, $value) |
||||
20 | { |
||||
21 | return $this->pathParameter($name, $value); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
22 | } |
||||
23 | |||||
24 | /** |
||||
25 | * @param $pathPattern |
||||
26 | * |
||||
27 | * @return $this |
||||
28 | * @deprecated |
||||
29 | * @codeCoverageIgnore |
||||
30 | */ |
||||
31 | public function setUriPattern($pathPattern) |
||||
32 | { |
||||
33 | return $this->pathPattern($pathPattern); |
||||
0 ignored issues
–
show
It seems like
pathPattern() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
34 | } |
||||
35 | |||||
36 | /** |
||||
37 | * @return string |
||||
38 | * @deprecated |
||||
39 | * @codeCoverageIgnore |
||||
40 | */ |
||||
41 | public function getUriPattern() |
||||
42 | { |
||||
43 | return $this->pathPattern; |
||||
44 | } |
||||
45 | |||||
46 | /** |
||||
47 | * @return array |
||||
48 | * @deprecated |
||||
49 | * @codeCoverageIgnore |
||||
50 | */ |
||||
51 | public function getPathParameters() |
||||
52 | { |
||||
53 | return $this->pathParameters; |
||||
54 | } |
||||
55 | } |
||||
56 |