Skip to content

Commit 3b183ef

Browse files
authored
Merge pull request #1040 from hydephp/add-generic-foundation-collection-type-annotations
Add generic FoundationCollection array type annotations
2 parents 57e0d28 + e9164b3 commit 3b183ef

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/framework/src/Foundation/Kernel/FileCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* The FileCollection contains all the discovered source and media files,
1616
* and thus has an integral role in the Hyde Auto Discovery process.
1717
*
18+
* @property array<string, ProjectFile> $items The files in the collection.
19+
*
1820
* This class is stored as a singleton in the HydeKernel.
1921
* You would commonly access it via one of the facades:
2022
*

packages/framework/src/Foundation/Kernel/PageCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
/**
1313
* The PageCollection contains all the instantiated pages.
1414
*
15+
* @property array<string, HydePage> $items The pages in the collection.
16+
*
1517
* This class is stored as a singleton in the HydeKernel.
1618
* You would commonly access it via one of the facades:
1719
*

packages/framework/src/Foundation/Kernel/RouteCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
/**
1313
* The RouteCollection contains all the routes, making it the Pseudo-Router for Hyde.
1414
*
15+
* @property array<string, Route> $items The routes in the collection.
16+
*
1517
* This class is stored as a singleton in the HydeKernel.
1618
* You would commonly access it via one of the facades:
1719
*

0 commit comments

Comments
 (0)