| 1 | <?php |
||
| 12 | class CollectionStringy extends \Arrayy\Collection\Collection |
||
| 13 | { |
||
| 14 | 116 | public function getType(): string |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @return Stringy[] |
||
| 21 | * |
||
| 22 | * @psalm-return array<array-key,Stringy> |
||
| 23 | */ |
||
| 24 | public function getAll(): array |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return \Generator|Stringy[] |
||
| 31 | * |
||
| 32 | * @psalm-return \Generator<Stringy> |
||
| 33 | */ |
||
| 34 | 115 | public function getGenerator(): \Generator |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string[] |
||
| 41 | */ |
||
| 42 | 2 | public function toStrings(): array |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @param string $string |
||
| 57 | * |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function addString(string $string): self |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param Stringy $stringy |
||
| 69 | * |
||
| 70 | * @return $this |
||
| 71 | */ |
||
| 72 | public function addStringy(Stringy $stringy): self |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param string[] $strings |
||
| 81 | * |
||
| 82 | * @psalm-pure |
||
| 83 | * |
||
| 84 | * @return static |
||
| 85 | */ |
||
| 86 | 2 | public static function createFromStrings($strings = []): self |
|
| 97 | } |
||
| 98 |