MovieAddedFromTmdbEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMovie() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Movies\Event;
6
7
use App\Movies\Entity\Movie;
8
use Symfony\Component\EventDispatcher\Event;
9
10
class MovieAddedFromTmdbEvent 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...
11
{
12
    public const NAME = 'movie.addedFromTmdb';
13
14
    private $movie;
15
16 2
    public function __construct(Movie $movie)
17
    {
18 2
        $this->movie = $movie;
19 2
    }
20
21
    public function getMovie(): Movie
22
    {
23
        return $this->movie;
24
    }
25
}
26