PHP Sihirli Yöntemler iyi uygulama mı?
I don't think magic methods are best or worst practice: depending on what you want to achieve you can use them or not... What I mean is that you don't have to tweak your code as possible to use them, but if you have to there is no problem at all.
Eğer 3 ve sadece 3 özelliklere sahip bir nesne varsa sihirli belirleyiciler / alıcılar kullanmak zorunda değilsiniz, ancak bazı ileri durumlarda çok karmaşık şeyler yapmak için harika bir yoldur (ORM sistemleri, vb ..)
Belki bazıları önerilmemektedir, bilmiyorum, ama çoğu değildir.