NotifiableInterface::createNotifications()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Jean Silva <[email protected]>
4
 * @license MIT
5
 */
6
namespace Jeancsil\FlightSpy\Notifier;
7
8
use Jeancsil\FlightSpy\Api\DataTransfer\SessionParameters;
9
10
interface NotifiableInterface
11
{
12
    /**
13
     * @param Deal[] $deals
14
     * @param SessionParameters $sessionParameters
15
     * @return void
16
     */
17
    public function notify(array $deals, SessionParameters $sessionParameters);
18
19
    /**
20
     * @param Deal $deal
21
     * @param string $notifyTo
22
     * @return boolean
23
     */
24
    public function wasNotified(Deal $deal, $notifyTo);
0 ignored issues
show
Coding Style introduced by
function wasNotified() does not seem to conform to the naming convention (^(?:is|has|should|may|supports)).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
25
26
    /**
27
     * @param SessionParameters $parameters
28
     * @param Deal[] $deals
29
     * @return Notification[]
30
     */
31
    public function createNotifications(SessionParameters $parameters, array $deals = []);
32
}
33