Tag Archives: oop

Sim­u­lat­ing pro­tec­ted inner classes in PHP

Some lan­guages allow you to cre­ate pro­tec­ted classes access­ible within same namespace or class scope. PHP does not have such sup­port. You can pre­vent class form dir­ect ini­tial­iz­a­tion by declar­ing __construct() as pro­tec­ted or private. This tech­nique is used for … Con­tinue read­ing

Posted in Development, How To's | Tagged , | Leave a comment