1 | <?php |
||
16 | class StringCollection |
||
17 | { |
||
18 | /** |
||
19 | * This string collection will convert to one string in get request by join |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $collection = []; |
||
24 | |||
25 | 8 | public function __construct($strings) |
|
35 | |||
36 | /** |
||
37 | * @param $strings |
||
38 | * @return null|self |
||
39 | * @throws InvalidArgumentException |
||
40 | */ |
||
41 | 11 | public static function init($strings) |
|
61 | |||
62 | 3 | public function getAll() |
|
66 | |||
67 | 10 | private static function isString($string) |
|
71 | |||
72 | 4 | public function asArray() |
|
76 | } |
||
77 |