name = $name; $this->value = $GLOBALS[$name]; } public function isExpired() { if ( !isset( $GLOBALS[$this->name] ) ) { return true; } return $GLOBALS[$this->name] != $this->value; } }