final class PhpFile

Instance of PHP file.

Generates:

  • opening tag (<?php)
  • doc comments
  • one or more namespaces

Methods

addClass(string $name)

No description

addInterface(string $name)

No description

addTrait(string $name)

No description

addNamespace(string $name)

No description

string
__toString()

No description

Details

at line 33
ClassType addClass(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 41
ClassType addInterface(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 49
ClassType addTrait(string $name)

No description

Parameters

string $name

Return Value

ClassType

at line 57
PhpNamespace addNamespace(string $name)

No description

Parameters

string $name

Return Value

PhpNamespace

at line 66
string __toString()

No description

Return Value

string

Traits

SmartObject