Fix typo and add PHPDoc