Based on construct create or delete some methods
<p>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?</p>

<pre><code>class Test
{ 
  function __construct(userID)
  { 
     if(!isValidUser($userID))
     { destroy(methods); }
  }
  function addPost()
  {

  }
}
</code></pre>

<p>Once destroy is called. The methods or selected methods should be destroyed</p>

<p>Hope you understand this time.</p>
