Assigning objects by reference produces warning since PHP 5. Returning object by reference is also senseless.
Explicit methods visibility
Merge pull request #5 from kostya0shift/php_oop_references

Explicit methods visibility and assigning objects by reference