Refactor: added phpdoc