Есть ли функция / метод, который извлекает все атрибуты из класса?Такие, как все атрибуты из моего класса ниже:
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 = "";
}