1 | <?php |
||
60 | class Collection extends AbstractCollection |
||
61 | { |
||
62 | /** |
||
63 | * The type of elements stored in this collection. |
||
64 | * |
||
65 | * @var string |
||
66 | */ |
||
67 | private $collectionTypeTmp; |
||
68 | |||
69 | /** |
||
70 | * Constructs a collection object of the specified type, optionally with the |
||
71 | * specified data. |
||
72 | * |
||
73 | * @param string $type |
||
74 | * @param mixed $data |
||
75 | * <p> |
||
76 | * The initial items to store in the collection. |
||
77 | * </p> |
||
78 | */ |
||
79 | 3 | public function __construct(string $type, $data = []) |
|
85 | |||
86 | /** |
||
87 | * The type (FQCN) associated with this collection. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 3 | public function getType(): string |
|
95 | |||
96 | /** |
||
97 | * Get a base Collection instance from this Collection. |
||
98 | * |
||
99 | * @return self |
||
100 | */ |
||
101 | 1 | public function toBase(): self |
|
105 | } |
||
106 |