How can you detect if a method is being called from within a public, private or protected scope?
For example ...
class Foo {
public function getPassword(){
$scope = [??????];
switch($scope){
case 'public':
return "*****";
break;
case 'protected': case 'private':
return "IamPassword";
break;
}
}
}
Inside the class I might need a property that might not be visible for the template engine but accessible by the class.