public function __construct($id = null, $name = null, $type = null) { $this->id = $id; $this->name = $name; $this->type = $type; }