Sender   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 2
c 4
b 0
f 1
lcom 1
cbo 2
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A send() 0 4 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