Completed
Push — master ( 3653e4...6fb8c6 )
by Xu
05:26
created

Notification::shouldSend()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @link http://www.tintsoft.com/
4
 * @copyright Copyright (c) 2012 TintSoft Technology Co. Ltd.
5
 * @license http://www.tintsoft.com/license/
6
 */
7
8
namespace yuncms\notifications;
9
10
use yii\base\BaseObject;
11
use yuncms\notifications\channels\Channel;
12
use yuncms\notifications\contracts\NotificationInterface;
13
14
/**
15
 * Class Notification
16
 *
17
 * @author Tongle Xu <[email protected]>
18
 * @since 3.0
19
 */
20
class Notification extends BaseObject implements NotificationInterface
21
{
22
    /**
23
     * Determines if the notification can be sent.
24
     *
25
     * @param  Channel $channel
26
     * @return bool
27
     */
28
    public function shouldSend($channel): bool
0 ignored issues
show
Unused Code introduced by
The parameter $channel is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

28
    public function shouldSend(/** @scrutinizer ignore-unused */ $channel): bool

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
29
    {
30
        return true;
31
    }
32
}