<?php
class A
{
public static function foo()
{
// some action
}
public static function __callStatic($method, $args)
{
self::foo();
static::$method($args);
}
}
class B extends A
{
public static function bar(){}
}
私は PHP public static function handler を検索しますが、試してみ__callStatic()
ましたが、プライベート メソッドと保護されたメソッドでのみ呼び出しています。