Guides

Project
in package
implements Project

FinalYes

Represents the entire project with its files, namespaces and indexes.

Table of Contents

Interfaces

Project

Properties

$files  : array<string|int, File>
$name  : string
$namespaces  : array<string|int, Namespace_>
$rootNamespace  : Namespace_|null

Methods

__construct()  : mixed
Initializes this descriptor.
addFile()  : void
Add a file to this project.
addNamespace()  : void
Add a namespace to the project.
getFiles()  : array<string|int, File>
Returns all files with their sub-elements.
getName()  : string
Returns the name of this project.
getNamespaces()  : array<string|int, Namespace_>
Returns all namespaces with their sub-elements.
getRootNamespace()  : Namespace_|null
Returns the root (global) namespace.

Properties

$name read-only

private string $name

Methods

__construct()

Initializes this descriptor.

public __construct(string $name[, Namespace_|null $rootNamespace = null ]) : mixed
Parameters
$name : string

Name of the current project.

$rootNamespace : Namespace_|null = null

Root namespace of the project.

addFile()

Add a file to this project.

public addFile(File $file) : void
Parameters
$file : File

getFiles()

Returns all files with their sub-elements.

public getFiles() : array<string|int, File>
Return values
array<string|int, File>

getName()

Returns the name of this project.

public getName() : string
Attributes
#[Override]
Return values
string

getNamespaces()

Returns all namespaces with their sub-elements.

public getNamespaces() : array<string|int, Namespace_>
Return values
array<string|int, Namespace_>

        
On this page

Search results