These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /* |
||
6 | * This file is part of the Sonata Project package. |
||
7 | * |
||
8 | * (c) Thomas Rabaix <[email protected]> |
||
9 | * |
||
10 | * For the full copyright and license information, please view the LICENSE |
||
11 | * file that was distributed with this source code. |
||
12 | */ |
||
13 | |||
14 | namespace Sonata\NotificationBundle\Model; |
||
15 | |||
16 | use Sonata\CoreBundle\Model\ManagerInterface; |
||
17 | use Sonata\CoreBundle\Model\PageableManagerInterface; |
||
18 | |||
19 | interface MessageManagerInterface extends ManagerInterface, PageableManagerInterface |
||
0 ignored issues
–
show
The interface
Sonata\CoreBundle\Model\PageableManagerInterface has been deprecated with message: since 3.x, to be removed in 4.0.
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead. ![]() |
|||
20 | { |
||
21 | /** |
||
22 | * @return int |
||
23 | */ |
||
24 | public function countStates(); |
||
25 | |||
26 | /** |
||
27 | * @param $maxAge |
||
28 | */ |
||
29 | public function cleanup($maxAge); |
||
30 | |||
31 | /** |
||
32 | * Cancels a given Message. |
||
33 | * |
||
34 | * @param MessageInterface $message |
||
35 | */ |
||
36 | public function cancel(MessageInterface $message); |
||
37 | |||
38 | /** |
||
39 | * Restarts a given message (cancels it and returns a new one, ready for publication). |
||
40 | * |
||
41 | * @param MessageInterface $message |
||
42 | * |
||
43 | * @return MessageInterface $message |
||
44 | */ |
||
45 | public function restart(MessageInterface $message); |
||
46 | |||
47 | /** |
||
48 | * @param array $types |
||
49 | * @param int $state |
||
50 | * @param int $batchSize |
||
51 | * |
||
52 | * @return MessageInterface[] |
||
53 | */ |
||
54 | public function findByTypes(array $types, $state, $batchSize); |
||
55 | |||
56 | /** |
||
57 | * @param array $types |
||
58 | * @param $state |
||
59 | * @param $batchSize |
||
60 | * @param null $maxAttempts |
||
61 | * @param int $attemptDelay |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function findByAttempts(array $types, $state, $batchSize, $maxAttempts = null, $attemptDelay = 10); |
||
66 | } |
||
67 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.