public function __construct($id = null) { if (is_numeric($id)) { $this->id = $id; } parent::__construct(); }