'; $this->name = $name; } // Attributes public function sayHello() { return $this->name . ' Says Hello'; } // Destructor - runs when we explicitly unset the object, // when it goes out of bounds, and when the script ends public function __destruct() { echo 'destructor ran...'; } } // Instantiate a user object $user1 = new User("Brad"); echo $user1->sayHello();