Based on constructor of the class. create or destroy new methods. I often requires based on construct to disable or destroy methods within the class. Can any one help me out?
class Test
{
function __construct(userID)
{
if(!isValidUser($userID))
{ destroy(methods); }
}
function addPost()
{
}
}
Bir kez yok olarak adlandırılır. Yöntemler veya seçilen yöntemler imha edilmeli
Bu sefer anlamak umuyoruz.