Remove useless variable
Update phpDoc
Correct coding style and adding phpDoc + fluent interface for getters
Adding updateMode flag for passing through the resource type validation condition when updating plugin configuration