资 源 简 介
PHP-based class generator
Given a simple text-based description of a class, code generator will produce the following :
PHP class file
User comments on class, property, and method level, suitable for use with PHPDocumentor
Generated properties and methods with appropriate access access and class/instance type
PHPUnit2 test case file
Provides stubs for testing all public methods of class
Includes debug support
Runs test cases as-is
PHP class runner file
Use this to instantiate and experiment with classes
Simple example file showing how to instantiate class and run all public methods
Sample input file
Uses mixture of Ruby-style notation for class members and UML accessor notation :
Simple case :
class MyClass@+myPublicInstanceProperty@@-myPrivateClassProperty#=myProtectedInstanceMethod##+myPublicClassMet