Skip to content

Commit d4999c9

Browse files
committed
Fixed jimmiw#66, by updating the comment on the constructor
1 parent b98368f commit d4999c9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Westsworld/TimeAgo.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,19 @@ class TimeAgo
2929

3030
/**
3131
* TimeAgo constructor.
32-
* @param null|DateTimeZone $timezone the timezone to use (uses system if none is given)
33-
* @param string $language the language to use (defaults to 'en' for english)
32+
* @param Language $language the language to use (defaults to 'en' for english)
3433
*/
3534
public function __construct(Language $language = null)
3635
{
3736
$this->language = $language;
3837
}
3938

39+
/**
40+
* Creating an instance of the timeago class, using the given language
41+
*
42+
* @param Language $language the language to use
43+
* @return TimeAgo
44+
*/
4045
public static function create(Language $language)
4146
{
4247
return new self($language);

0 commit comments

Comments
 (0)