update php docblocks

Add php docblock. Add return type to functions
update method call set_destination to set_destination_path
add phpunit test cases