Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ClassCreator Class Reference
+ Inheritance diagram for ClassCreator:

Public Member Functions

 __construct ($classname, $namespace, $extendsOrImplements='', $classContent='')
 
 generate ()
 
 getTemplate ()
 
 setTemplate (string $template)
 
 addClassAttribute ($attribute)
 
- Public Member Functions inherited from HasUsesTrait
 getUses ()
 
 addUse ($classname)
 
 addUses (... $classnames)
 
 getUsesStr ()
 

Private Member Functions

 getTemplateDir ()
 

Private Attributes

string $template
 
string $classname
 
string $namespace
 
string $extendsOrImplements
 
string $classContent
 
array $classAttributes
 

Additional Inherited Members

- Protected Attributes inherited from HasUsesTrait
 $uses =[]
 

Detailed Description

Definition at line 11 of file ClassCreator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $classname,
  $namespace,
  $extendsOrImplements = '',
  $classContent = '' 
)

Definition at line 24 of file ClassCreator.php.

Member Function Documentation

◆ addClassAttribute()

addClassAttribute (   $attribute)

Definition at line 72 of file ClassCreator.php.

◆ generate()

generate ( )

Definition at line 34 of file ClassCreator.php.

◆ getTemplate()

getTemplate ( )
Returns
string

Definition at line 61 of file ClassCreator.php.

◆ getTemplateDir()

getTemplateDir ( )
private

Definition at line 20 of file ClassCreator.php.

◆ setTemplate()

setTemplate ( string  $template)
Parameters
string$template

Definition at line 68 of file ClassCreator.php.

Field Documentation

◆ $classAttributes

array $classAttributes
private

Definition at line 18 of file ClassCreator.php.

◆ $classContent

string $classContent
private

Definition at line 17 of file ClassCreator.php.

◆ $classname

string $classname
private

Definition at line 14 of file ClassCreator.php.

◆ $extendsOrImplements

string $extendsOrImplements
private

Definition at line 16 of file ClassCreator.php.

◆ $namespace

string $namespace
private

Definition at line 15 of file ClassCreator.php.

◆ $template

string $template
private

Definition at line 13 of file ClassCreator.php.


The documentation for this class was generated from the following file: