Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create facade class #8

Open
moyarada opened this issue Aug 23, 2010 · 0 comments
Open

Create facade class #8

moyarada opened this issue Aug 23, 2010 · 0 comments

Comments

@moyarada
Copy link
Collaborator

It's better to have one class, that's responsible for all operation, instead of three different classes.
For example,

$xtp = new Xtp();

// Compile XSD

$xtp->generateCode($xsdFile);

// Marshal XML

$xtp->marshal($model, $xmlFile);

// Unmarshal XML

$xtp->unmarshal($xml);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants