I don’t understand why though. Private allows access only within the current class, in this case it’s QuoteController. By making it protected I allow Controller to use it as well, but why would it need to? I’m a little lost.
It’s because __get() method declared in CComponent so your method will not be called in private scope. anyway in my opinion it’s better to avoid using this approach when it’s not necessary, why don’t call the method directly when we can?