Sender::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace DoS\UserBundle\Confirmation\Email;
4
5
use DoS\UserBundle\Confirmation\SenderInterface;
6
use Sylius\Component\Mailer\Sender\SenderInterface as MailSenderInterface;
7
use Symfony\Component\DependencyInjection\ContainerAware;
8
9
class Sender extends ContainerAware implements SenderInterface
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\Depend...njection\ContainerAware has been deprecated with message: since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead.

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.

Loading history...
10
{
11
    /**
12
     * @var MailSenderInterface
13
     */
14
    protected $sender;
15
16
    public function __construct(MailSenderInterface $sender)
17
    {
18
        $this->sender = $sender;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function send($code, array $recipients, array $data = array())
25
    {
26
        return $this->sender->send($code, $recipients, $data);
27
    }
28
}
29