Add PHPDoc & typehint to align with Stash & improve autocomplete