Update Extension.php

Removed $publicOrProtected variables