FileCollection
extends BaseFoundationCollection
in package
FinalYes
The FileCollection contains all the discovered source files.
Tags
Table of Contents
Properties
- $items : array<string, SourceFile>
- $kernel : HydeKernel
Methods
- addFile() : void
- boot() : static
- get() : SourceFile|null
- getFile() : SourceFile
- getFiles() : FileCollection
- init() : static
- __construct() : mixed
- discoverFilesFor() : void
- runDiscovery() : void
- runExtensionHandlers() : void
- setKernel() : $this
Properties
$items
public
array<string, SourceFile>
$items
The files in the collection.
$kernel
protected
HydeKernel
$kernel
Methods
addFile()
public
addFile(SourceFile $file) : void
Parameters
- $file : SourceFile
boot()
public
final boot() : static
Return values
staticget()
public
get(string $key[, SourceFile $default = = 'null' ]) : SourceFile|null
Parameters
- $key : string
- $default : SourceFile = = 'null'
Return values
SourceFile|nullgetFile()
public
getFile(string $path) : SourceFile
Parameters
- $path : string
Return values
SourceFilegetFiles()
public
getFiles([HydePage>|null $pageClass = null ]) : FileCollection
Parameters
- $pageClass : HydePage>|null = null
Return values
FileCollectioninit()
public
static init(HydeKernel $kernel) : static
Parameters
- $kernel : HydeKernel
Return values
static__construct()
protected
final __construct([array<string|int, mixed>|Arrayable|null $items = [] ]) : mixed
Parameters
- $items : array<string|int, mixed>|Arrayable|null = []
discoverFilesFor()
protected
discoverFilesFor(HydePage> $pageClass) : void
Parameters
- $pageClass : HydePage>
runDiscovery()
protected
runDiscovery() : void
runExtensionHandlers()
protected
runExtensionHandlers() : void
setKernel()
protected
setKernel(HydeKernel $kernel) : $this
Parameters
- $kernel : HydeKernel