class Dream
{
private $mydream;
private $findDream;
public static function whichDream()
{
//Here
}
public function findDream()
{
// SOmething......
}
}
class Dream
{
private $mydream;
private $findDream;
private static $self = null;
public static function _self()
{
if(is_null(self::$self)) {
self::$self = new self;
}
return self::$self;
}
public static function whichDream()
{
return self::_self()->findDream();
}
public function findDream()
{
echo 'Test';
}
}
Dream::whichDream();