Inside a class definition, $this refers to the current object, while self refers to the current class.
It is necessary to refer to a class element using self, and refer to an object element using $this.
self::$stat // static variable
$this->stat // refer to an object variable like this