AbstractEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRemoteAdapter() 0 4 1
1
<?php
2
3
/**
4
 * @project Magento Bridge for Symfony 2.
5
 *
6
 * @author  Sébastien MALOT <[email protected]>
7
 * @license MIT
8
 * @url     <https://github.com/smalot/magento-bundle>
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 Smalot\MagentoBundle\Event;
15
16
use Smalot\Magento\RemoteAdapterInterface;
17
use Symfony\Component\EventDispatcher\Event;
18
19
/**
20
 * Class AbstractEvent
21
 *
22
 * @package Smalot\MagentoBundle\Event
23
 */
24
abstract class AbstractEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" 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...
25
{
26
    /**
27
     * @var \Smalot\Magento\RemoteAdapterInterface
28
     */
29
    protected $remoteAdapter;
30
31
    /**
32
     * @return \Smalot\Magento\RemoteAdapterInterface
33
     */
34
    public function getRemoteAdapter()
35
    {
36
        return $this->remoteAdapter;
37
    }
38
}
39