Directly accessing properties - don't do it!
You don't have to use methods to access objects properties; you can directly get to them using the arrow operator (->) and the name of the variable.
For example: with the property $name (in object $stefan) you could get its value like so:
$name = $stefan->name;
Though doable, it is considered bad practice to do it because it can lead to trouble down the road. You should use getter methods instead - more on that later.
why is this better
$stefan = new person("Stefan Mischook");
echo "Stefan's full name: ".$stefan->get_name();