Update phpdoc, prepare to inplement assertions, add matchRole method