Add phpdoc in the patch method