<?php
 
// namespace {
 
CLASS test{
 
protected $r,$x,$v;
 
    public function __construct($x,$y,$z){
 
        $this->x=$x;
 
        $this->r=$y;
 
        $this->v=$z;
 
    }
 
    
 
    public function just_for_test(){ 
 
        echo 'you call '.__class__ .' object from the file '. __FILE__ .' using lazy loading';
 
    }
 
}
 
CLASS test1{
 
protected $r,$x,$v;
 
    public function __construct($x,$y,$z){
 
        $this->x=$x;
 
        $this->r=$y;
 
        $this->v=$z;
 
    }
 
    public function just_for_test(){ 
 
        echo 'you call '.__class__ .' object from the file '. __FILE__ .' using lazy loading';
 
    }
 
}
 
// }
 
// namespace tatao;
 
CLASS test2{
 
protected $r,$x,$v;
 
    public function __construct($x,$y,$z){
 
        $this->x=$x;
 
        $this->r=$y;
 
        $this->v=$z;
 
    }
 
    public function just_for_test(){ 
 
        echo 'you call '.__class__ . ' object from the file '. __FILE__ .' using lazy loading';
 
    }
 
}
 
CLASS test3{
 
protected $r,$x,$v;
 
    public function __construct($x,$y,$z){
 
        $this->x=$x;
 
        $this->r=$y;
 
        $this->v=$z;
 
    }
 
    public function just_for_test(){ 
 
        echo 'you call '.__class__ .' object from the file  '. __FILE__ .' using lazy loading';
 
    }
 
}
 
CLASS test4{
 
protected $r,$x,$v;
 
    public function __construct($x,$y,$z){
 
        $this->x=$x;
 
        $this->r=$y;
 
        $this->v=$z;
 
    }
 
    public function just_for_test(){ 
 
        echo 'you call function '. __FUNCTION__ .' of class '.__CLASS__ .' object from the file  '. __FILE__ .' using lazy loading';
 
    }
 
}
 
?>
 
 |