1 | <?php |
||
24 | class CurrentUser extends SaitoUser implements CurrentUserInterface |
||
25 | { |
||
26 | /** |
||
27 | * Bookmarks manager |
||
28 | * |
||
29 | * @var Bookmarks |
||
30 | */ |
||
31 | private $bookmarks = null; |
||
32 | |||
33 | /** |
||
34 | * Manages the last refresh/mark entries as read for the current user |
||
35 | * |
||
36 | * @var LastRefreshInterface |
||
37 | */ |
||
38 | private $lastRefresh = null; |
||
39 | |||
40 | /** |
||
41 | * @var ReadPostingsInterface |
||
42 | */ |
||
43 | private $readPostings; |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | public function setLastRefresh(LastRefreshInterface $lastRefresh): CurrentUserInterface |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | public function getLastRefresh(): LastRefreshInterface |
||
69 | |||
70 | /** |
||
71 | * {@inheritDoc} |
||
72 | */ |
||
73 | public function setReadPostings(ReadPostingsInterface $readPostings): CurrentUserInterface |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public function getReadPostings(): ReadPostingsInterface |
||
94 | |||
95 | /** |
||
96 | * {@inheritDoc} |
||
97 | */ |
||
98 | public function hasBookmarked($postingId) |
||
106 | |||
107 | /** |
||
108 | * {@inheritDoc} |
||
109 | */ |
||
110 | public function ignores($userId = null) |
||
118 | } |
||
119 |