是否有一个函数/方法从类中检索所有属性?比如下面我班级的所有属性:
class plantOfTheMonth {
//Declare which centre(s) are being used
private $centre = "";
//Declare the attributes of the current Plant Of The Month
private $name = "";
private $latinName = "";
private $image = "";
private $imageAlt = "";
private $imageLink = "";
private $strapLine = "";
private $description = "";
private $color = "";
private $centres = "";
//Declare variables for error handling
private $issue = "";
private $issueCode = "";
}