| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getList($options) |
||
| 23 | { |
||
| 24 | if (!isset($options['name'])) { |
||
| 25 | return ['error' => true, 'msg' => 'no name of list was provided']; |
||
| 26 | } |
||
| 27 | $listName = str_replace("list_", "", $options['name']); |
||
| 28 | |||
| 29 | return $this->client->webservice( |
||
| 30 | 'dsSegmentsGetByListName', |
||
| 31 | array($listName) |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |