| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 7 | public function __construct( |
|
| 39 | $action, |
||
| 40 | array $params = array(), |
||
| 41 | array $headers = array() |
||
| 42 | ) { |
||
| 43 | 7 | if( !is_string( $action ) ) { |
|
| 44 | 1 | throw new InvalidArgumentException( '$action must be string' ); |
|
| 45 | } |
||
| 46 | 6 | $this->action = $action; |
|
| 47 | 6 | $this->params = $params; |
|
| 48 | 6 | $this->headers = $headers; |
|
| 49 | 6 | } |
|
| 50 | |||
| 60 |