class PhpFile

Instance of PHP file.

Generates:

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

Methods

addClass($name)

No description

addInterface($name)

No description

addTrait($name)

No description

addNamespace($name)

No description

string
__toString()

No description

Details

at line 35
ClassType addClass($name)

No description

Parameters

$name

Return Value

ClassType

at line 47
ClassType addInterface($name)

No description

Parameters

$name

Return Value

ClassType

at line 59
ClassType addTrait($name)

No description

Parameters

$name

Return Value

ClassType

at line 71
PhpNamespace addNamespace($name)

No description

Parameters

$name

Return Value

PhpNamespace

at line 83
string __toString()

No description

Return Value

string

PHP code

Traits

SmartObject