title: How to call callback method for class?
body: <p>Help me please:</p>
  
  <pre><code>class xam{
  
         public static function __callStatic($name, $arguments) {
              self::$name();
          }
  
          static protected function mycallback(){
              echo 'mycallback';
          }
      }
  
      function doIt($callback) { $callback(); }
  </code></pre>
  
  <p>I am trying:</p>
  
  <pre><code>doIt(xam::mycallback);
  </code></pre>
  
  <p>Error:</p>
  
  <p><strong>Fatal error: Undefined class constant 'mycallback'</strong> </p>
  
  <p>I know one variant:</p>
  
  <pre><code>doIt(function(){xam::mycallback();});
  </code></pre>
  
  <p>But it may have an alternative ?
  Thanks for your help .</p>