class PhpFile

Instance of PHP file.

Generates:

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

Methods

setComment($val)

No description

string|null
getComment()

No description

addComment($val)

No description

setDocuments(array $s) deprecated

No description

getDocuments() deprecated

No description

addDocument($s) deprecated

No description

addClass($name)

No description

addInterface($name)

No description

addTrait($name)

No description

addNamespace($name)

No description

string
__toString()

No description

Details

at line 37
PhpFile setComment($val)

No description

Parameters

$val

Return Value

PhpFile

at line 47
string|null getComment()

No description

Return Value

string|null

at line 57
PhpFile addComment($val)

No description

Parameters

$val

Return Value

PhpFile

at line 65
setDocuments(array $s) deprecated

deprecated

No description

Parameters

array $s

at line 73
getDocuments() deprecated

deprecated

No description

at line 81
addDocument($s) deprecated

deprecated

No description

Parameters

$s

at line 92
ClassType addClass($name)

No description

Parameters

$name

Return Value

ClassType

at line 104
ClassType addInterface($name)

No description

Parameters

$name

Return Value

ClassType

at line 116
ClassType addTrait($name)

No description

Parameters

$name

Return Value

ClassType

at line 128
PhpNamespace addNamespace($name)

No description

Parameters

$name

Return Value

PhpNamespace

at line 140
string __toString()

No description

Return Value

string

PHP code

Traits

SmartObject