function __construct($values = null) { if ($values) { foreach ($values as $k => $v) { $this->{$k} = $v; } } parent::__construct(); }
function __construct($id) { $this->ID = $id; parent::__construct(); }