Useful tips to help you create good habits as a web developer
Antoine Lechenault
7K28

Your comments are longer than the code, and are really just noise as they are _very_ easy to abstract from the code itself. If you need comments to explain your code, your code needs refactoring.

/*
* Set the name of the instancied planet
* @var STRING $new_name Contain only a string to name the planet
*/
function set_name(string $new_name) {
$this->name = $new_name;
}

/*
* Function to access the name of the planet
* return STRING $this->name Contain only a string with the name
* of the planet
*/
function get_name() {
return $this->name;
}