Hello,
I have an object which consists only in setters and getters methods. All the setters are called upon instantiation. Then it's all about using the getters.

I was wondering if it would acceptable to do that:

PHP Code:
$foo $object->get()->foo
Instead of:

PHP Code:
$foo $object->getFoo(); 
1. Is there any advantage? I somewhow find the syntax cleaner.

2. How would the internal of the object work to reach the first syntax?

3. Would there be a third, even shorter, syntax possible?

PHP Code:
$foo $object()->foo

Regards,

-jj.