私は3つのクラスを持っています..
クラス 1 :
<?php
include "two.php";
include "three.php";
class One{
public function __construct(){
$two = new Two($this);
$three = new Three($two);
}
}
$api = new One;
?>
クラス 2 :
<?php
class Two extends AOP {
public function __construct($obj){
//blablabla
}
}
?>
クラス 3 :
<?php
class Three extends AOP {
public function __construct($obj){
echo get_class($obj);
}
}
?>
しかし、結果は「One」を出力する必要があります。オブジェクト内のオブジェクトからクラス名を取得するには?