PHP Collect class instances : I'm developing a WordPress plugin where I want to connect different apps. I created a class 'App' and I'm extending the 'App' class with different classes. 

Now I would like to collect all the objects of those instances so I can list them out.

Anyone who can help me out? If interested I'm even willing to pay a good developer who can teach me this for future development. Looking forward to your replies.

This is my current code:

class App {

	public function __construct( $id, $name, $label, $description, $subscription_id ) {
		$this->id              = $id;
		$this->name            = $name;
		$this->label           = $label;
		$this->description     = $description;
		$this->subscription_id = $subscription_id;
	}
}
class App_Vimeo extends App {

	public function __construct( $id, $name, $label, $description, $subscription_id ) {
		$this->id              = $id;
		$this->name            = $name;
		$this->label           = $label;
		$this->description     = $description;
		$this->subscription_id = $subscription_id;
	}
}

class App_Facebook extends App {

	public function __construct( $id, $name, $label, $description, $subscription_id ) {
		$this->id              = $id;
		$this->name            = $name;
		$this->label           = $label;
		$this->description     = $description;
		$this->subscription_id = $subscription_id;
	}
}

class Get_Apps {

	public function __construct() {
		$this->get_apps();
	}

	public static function get_apps() {
		$apps   = array();
		$apps[] = new App_Vimeo( 1, 'vimeo', 'Vimeo', 'Vimeo app description', 1 );
		$apps[] = new App_Facebook( 1, 'facebook', 'Facebook', 'Facebook app description', 1 );
		return $apps;
	}
}

$apps = Get_Apps::get_apps();
var_dump( $apps );
`

