1: <?php
2:
3: namespace SMSApi\Api\Action\User;
4:
5: use SMSApi\Api\Action\AbstractAction;
6: use SMSApi\Proxy\Uri;
7:
8: 9: 10: 11:
12: class Get extends AbstractAction {
13:
14: 15: 16: 17:
18: protected function response( $data ) {
19:
20: return new \SMSApi\Api\Response\UserResponse( $data );
21: }
22:
23: 24: 25:
26: public function uri() {
27:
28: $query = "";
29:
30: $query .= $this->paramsLoginToQuery();
31:
32: $query .= $this->paramsOther();
33:
34: return new Uri( $this->proxy->getProtocol(), $this->proxy->getHost(), $this->proxy->getPort(), "/api/user.do", $query );
35: }
36:
37: 38: 39: 40: 41:
42: public function setUsername( $username ) {
43: $this->params[ "get_user" ] = $username;
44: return $this;
45: }
46:
47: 48: 49: 50: 51: 52:
53: public function filterByUserName( $username ) {
54: $this->params[ "get_user" ] = $username;
55: return $this;
56: }
57:
58: }
59:
60: