"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi,
>
> It's generaly considered that constructors are supposed return an
> instance of that class. Use a factory instead if you want to return nulls;


A Factory?

OK, I'll look that up, do some readng and try that route.

So, if I understand you, using this 'factory' I can either return a new
class instance (if it passes all the tests) or a NULL value (no instance) if
it fails?

Thanks for the pointer.

Walter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to