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 | public function __construct($strings) |
||
35 | |||
36 | /** |
||
37 | * @param $strings |
||
38 | * @return null|self |
||
39 | * @throws InvalidArgumentException |
||
40 | */ |
||
41 | public static function init($strings) |
||
61 | |||
62 | public function getAll() |
||
66 | |||
67 | private static function isString($string) |
||
71 | |||
72 | public function asArray() |
||
76 | } |