Update User.php

add duration #15
Merge pull request #17 from philippfrenzel/patch-1

fixed method declaration close #15