From c18b956a21b376b5e7cc5c93ac79bc17bf37918c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 10 Apr 2017 15:38:28 +0200 Subject: [PATCH] Fix: Add class-level method annotations for DateTime provider --- src/Faker/Generator.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Faker/Generator.php b/src/Faker/Generator.php index 5bed91650a..89749e1fe4 100644 --- a/src/Faker/Generator.php +++ b/src/Faker/Generator.php @@ -101,10 +101,24 @@ * @property int $year * @property int $century * @property string $timezone + * @method string amPm($max = 'now') * @method string date($format = 'Y-m-d', $max = 'now') + * @method string dayOfMonth($max = 'now') + * @method string dayOfWeek($max = 'now') + * @method string iso8601($max = 'now') + * @method string month($max = 'now') + * @method string monthName($max = 'now') * @method string time($format = 'H:i:s', $max = 'now') + * @method string unixTime($max = 'now') + * @method string year($max = 'now') + * @method \DateTime dateTime($max = 'now', $timezone = null) + * @method \DateTime dateTimeAd($max = 'now', $timezone = null) * @method \DateTime dateTimeBetween($startDate = '-30 years', $endDate = 'now') * @method \DateTime dateTimeInInterval($date = '-30 years', $interval = '+5 days', $timezone = null) + * @method \DateTime dateTimeThisCentury($max = 'now', $timezone = null) + * @method \DateTime dateTimeThisDecade($max = 'now', $timezone = null) + * @method \DateTime dateTimeThisYear($max = 'now', $timezone = null) + * @method \DateTime dateTimeThisMonth($max = 'now', $timezone = null) * * @property string $md5 * @property string $sha1