@@ 13-19 (lines=7) @@ | ||
10 | abstract class AbstractDirectLinkRequest extends AbstractRequest |
|
11 | { |
|
12 | ||
13 | public function setUserId($userid) |
|
14 | { |
|
15 | if (strlen($userid) < 2) { |
|
16 | throw new InvalidArgumentException("User ID is too short"); |
|
17 | } |
|
18 | $this->parameters['userid'] = $userid; |
|
19 | } |
|
20 | ||
21 | public function setPassword($password) |
|
22 | { |
@@ 41-47 (lines=7) @@ | ||
38 | return array(self::TEST, self::PRODUCTION); |
|
39 | } |
|
40 | ||
41 | public function setUserId($userid) |
|
42 | { |
|
43 | if (strlen($userid) < 2) { |
|
44 | throw new InvalidArgumentException("User ID is too short"); |
|
45 | } |
|
46 | $this->parameters['userid'] = $userid; |
|
47 | } |
|
48 | ||
49 | /** Alias for setPswd() */ |
|
50 | public function setPassword($password) |